Fix DrawLine bug
authorUrbertar@gmail.com
Sun, 03 Mar 2013 19:32:48 +0200
changeset 8626 cfc44db21d72
parent 8624 12bdc51a6790
child 8628 627e76986a08
Fix DrawLine bug
hedgewars/uRender.pas
--- a/hedgewars/uRender.pas	Fri Mar 01 22:32:49 2013 -0500
+++ b/hedgewars/uRender.pas	Sun Mar 03 19:32:48 2013 +0200
@@ -349,7 +349,7 @@
 end;
 
 procedure DrawLine(X0, Y0, X1, Y1, Width: Single; r, g, b, a: Byte);
-var VertexBuffer: array [0..3] of TVertex2f;
+var VertexBuffer: array [0..1] of TVertex2f;
 begin
     glDisable(GL_TEXTURE_2D);
     glEnable(GL_LINE_SMOOTH);