Fix arm* build failures
authorGianfranco Costamagna <costamagnagianfranco@yahoo.it>
Tue, 30 Dec 2014 15:56:09 +0100
changeset 10724 eedd0697d55c
parent 10722 37264e44ec0f
child 10770 8060cb5c2fa6
Fix arm* build failures
hedgewars/uRender.pas
--- a/hedgewars/uRender.pas	Sat Dec 27 11:36:28 2014 -0500
+++ b/hedgewars/uRender.pas	Tue Dec 30 15:56:09 2014 +0100
@@ -535,11 +535,14 @@
 end;
 
 procedure openglRotatef(RotX, RotY, RotZ: GLfloat; dir: LongInt); inline;
+{ workaround for pascal bug http://bugs.freepascal.org/view.php?id=27222 }
+var tmpdir: LongInt;
 begin
+tmpdir:=dir;
 {$IFDEF GL2}
-    hglRotatef(RotX, RotY, RotZ, dir);
+    hglRotatef(RotX, RotY, RotZ, tmpdir);
 {$ELSE}
-    glRotatef(RotX, RotY, RotZ, dir);
+    glRotatef(RotX, RotY, RotZ, tmpdir);
 {$ENDIF}
 end;