summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-07-11 23:59:13 -0700
committerVinson Lee <vlee@vmware.com>2009-07-11 23:59:13 -0700
commit481eb71324c2c9bab9a751f9d48680639f965096 (patch)
treefd2f42ca8c8bbbf14e69e064be702ea01b95d6a5 /src
parent3626c247bae3aa9a0d29a0127ad2cef1ccbb6de1 (diff)
clipFlat: Use gl[En|Dis]ableClientState for vertex arrays.
GL_VERTEX_ARRAY and GL_COLOR_ARRAY are client-side capabilities.
Diffstat (limited to 'src')
-rw-r--r--src/glean/tclipflat.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/glean/tclipflat.cpp b/src/glean/tclipflat.cpp
index 3246fbf..a2798c0 100644
--- a/src/glean/tclipflat.cpp
+++ b/src/glean/tclipflat.cpp
@@ -220,13 +220,13 @@ ClipFlatTest::drawArrays(GLenum mode, const GLfloat *verts, GLuint count)
{
glColorPointer(3, GL_FLOAT, 5 * sizeof(GLfloat), verts + 0);
glVertexPointer(2, GL_FLOAT, 5 * sizeof(GLfloat), verts + 3);
- glEnable(GL_COLOR_ARRAY);
- glEnable(GL_VERTEX_ARRAY);
+ glEnableClientState(GL_COLOR_ARRAY);
+ glEnableClientState(GL_VERTEX_ARRAY);
glDrawArrays(mode, 0, count);
- glDisable(GL_COLOR_ARRAY);
- glDisable(GL_VERTEX_ARRAY);
+ glDisableClientState(GL_COLOR_ARRAY);
+ glDisableClientState(GL_VERTEX_ARRAY);
}