From 5536f539b0e42565c312a300d01371c178740809 Mon Sep 17 00:00:00 2001
From: Yoz Grahame <yoz@yoz.com>
Date: Mon, 19 Nov 2012 13:18:37 -0800
Subject: [PATCH] use glDrawElements() to draw the particles - no major speedup
 so far, but less code

---
 main.cpp | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/main.cpp b/main.cpp
index af3a6c2b06..734d10ffbf 100644
--- a/main.cpp
+++ b/main.cpp
@@ -618,16 +618,7 @@ void display(void)
         glTexEnvf( GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE );
         glEnable( GL_POINT_SPRITE_ARB );
         if (!display_head) {
-            glBegin( GL_POINTS );
-            {
-                for (i = 0; i < NUM_TRIS; i++)
-                {
-                    glVertex3f(tris.vertices[i*3],
-                               tris.vertices[i*3+1],
-                               tris.vertices[i*3+2]);
-                }
-            }
-            glEnd();
+            glDrawElements(GL_POINTS, NUM_TRIS, GL_FLOAT, tris.vertices);
         }
         glDisable( GL_POINT_SPRITE_ARB );
         glDisable( GL_TEXTURE_2D );