hedgewars/uRender.pas
branchqmlfrontend
changeset 10817 48a53259fad8
parent 10606 8e95911cb86b
parent 10724 eedd0697d55c
child 10886 99273b7afbff
--- a/hedgewars/uRender.pas	Mon Feb 02 23:12:56 2015 +0300
+++ b/hedgewars/uRender.pas	Sat Feb 07 23:26:14 2015 +0300
@@ -534,11 +534,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;