hedgewars/uGearsRender.pas
changeset 7188 580cd247511e
parent 7186 013deb83086b
child 7288 5d0704f23a2a
--- a/hedgewars/uGearsRender.pas	Tue Jun 05 22:17:06 2012 +0200
+++ b/hedgewars/uGearsRender.pas	Tue Jun 05 22:37:36 2012 +0200
@@ -37,7 +37,7 @@
                 end;
 
 implementation
-uses uRender, uUtils, uVariables, uAmmos, Math, uVisualGears;
+uses uRender, uStore, uUtils, uVariables, uAmmos, Math, uVisualGears;
 
 procedure DrawRopeLinesRQ(Gear: PGear);
 begin
@@ -62,7 +62,7 @@
 
     Tint($C0, $C0, $C0, $FF);
 
-    glVertexPointer(2, GL_FLOAT, 0, @RopePoints.rounded[0]);
+    SetVertexPointer(@RopePoints.rounded[0]);
     glDrawArrays(GL_LINE_STRIP, 0, RopePoints.Count + 2);
     Tint($FF, $FF, $FF, $FF);