avoiding GL_POLYGON in immediate mode

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2674 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-18 02:15:28 +00:00
parent a0c6318eea
commit 53fd38c71b
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ void drawarrow(int dir, int x, int y, int size, float r = 1.0f, float g = 1.0f,
glDisable(GL_TEXTURE_2D);
glColor3f(r, g, b);
glBegin(GL_POLYGON);
glBegin(GL_TRIANGLES);
glVertex2f(x, dir ? y+size : y);
glVertex2f(x+size/2, dir ? y : y+size);
glVertex2f(x+size, dir ? y+size : y);