Use GL_LINE_STRIP instead of GL_LINES
authorunc0rr
Thu, 10 Sep 2009 03:02:38 +0000
changeset 2363 5304fa032d9b
parent 2362 ef4abaf2d5cc
child 2364 272977d2df53
Use GL_LINE_STRIP instead of GL_LINES
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Wed Sep 09 14:04:06 2009 +0000
+++ b/hedgewars/uGears.pas	Thu Sep 10 03:02:38 2009 +0000
@@ -1310,7 +1310,7 @@
 
 	glEnableClientState(GL_VERTEX_ARRAY);
 	glVertexPointer(2, GL_INT, 0, @RopePoints.rounded[0]);
-	glDrawArrays(GL_LINES, 0, cnt + 1);
+	glDrawArrays(GL_LINE_STRIP, 0, cnt + 1);
 	glColor4f(1, 1, 1, 1);
 	glEnable(GL_TEXTURE_2D);
 	glDisable(GL_LINE_SMOOTH);