summaryrefslogtreecommitdiff
path: root/progs/xdemos
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-07-08 13:58:30 -0600
committerBrian Paul <brianp@vmware.com>2009-07-08 13:58:30 -0600
commit820436f97821b5e1774fda8daf86ea0dcc379186 (patch)
treeecc798cdc5d5760bd8c5b272837d8d959e57825b /progs/xdemos
parentbf71ece171305f80972f6e401442372618265fcb (diff)
demos: use glEnable/DisableClientState() for vertex arrays
Diffstat (limited to 'progs/xdemos')
-rw-r--r--progs/xdemos/glxswapcontrol.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/progs/xdemos/glxswapcontrol.c b/progs/xdemos/glxswapcontrol.c
index 5a5d084f90..df9f7ad784 100644
--- a/progs/xdemos/glxswapcontrol.c
+++ b/progs/xdemos/glxswapcontrol.c
@@ -303,13 +303,13 @@ draw(void)
glDisable(GL_LIGHTING);
glShadeModel(GL_SMOOTH);
- glEnable( GL_VERTEX_ARRAY );
- glEnable( GL_COLOR_ARRAY );
+ glEnableClientState( GL_VERTEX_ARRAY );
+ glEnableClientState( GL_COLOR_ARRAY );
glVertexPointer( 3, GL_FLOAT, 0, vert );
glColorPointer( 3, GL_FLOAT, 0, col );
glDrawArrays( GL_POLYGON, 0, 4 );
- glDisable( GL_COLOR_ARRAY );
- glDisable( GL_VERTEX_ARRAY );
+ glDisableClientState( GL_COLOR_ARRAY );
+ glDisableClientState( GL_VERTEX_ARRAY );
glMatrixMode(GL_PROJECTION);
glLoadIdentity();