diff options
author | Brian Paul <brianp@vmware.com> | 2009-07-08 13:58:30 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-07-08 13:58:30 -0600 |
commit | 820436f97821b5e1774fda8daf86ea0dcc379186 (patch) | |
tree | ecc798cdc5d5760bd8c5b272837d8d959e57825b /progs/tests/mapvbo.c | |
parent | bf71ece171305f80972f6e401442372618265fcb (diff) |
demos: use glEnable/DisableClientState() for vertex arrays
Diffstat (limited to 'progs/tests/mapvbo.c')
-rw-r--r-- | progs/tests/mapvbo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/tests/mapvbo.c b/progs/tests/mapvbo.c index c392e768358..52a22a5e791 100644 --- a/progs/tests/mapvbo.c +++ b/progs/tests/mapvbo.c @@ -54,10 +54,10 @@ Draw(void) glBindBufferARB(GL_ARRAY_BUFFER_ARB, BufferID); glVertexPointer(3, GL_FLOAT, 24, 0); - glEnable(GL_VERTEX_ARRAY); + glEnableClientState(GL_VERTEX_ARRAY); glColorPointer(3, GL_FLOAT, 24, (void*) 12); - glEnable(GL_COLOR_ARRAY); + glEnableClientState(GL_COLOR_ARRAY); glDrawArrays(GL_TRIANGLE_FAN, 0, 4); |