diff mbox

[13/21] gl: Remove unnecessary call to glDisableClientState()

Message ID 1311602208-5973-13-git-send-email-alexandros.frantzis@linaro.org
State Accepted
Headers show

Commit Message

alexandros.frantzis@linaro.org July 25, 2011, 1:56 p.m. UTC
From: Alexandros Frantzis <alexandros.frantzis@linaro.org>

This function has no effect when using shaders and is not supported at all in
GLES2.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 src/cairo-gl-device.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/src/cairo-gl-device.c b/src/cairo-gl-device.c
index 92cd82a..6dcf835 100644
--- a/src/cairo-gl-device.c
+++ b/src/cairo-gl-device.c
@@ -89,8 +89,6 @@  _gl_flush (void *device)
 
     ctx->dispatch.BindBuffer (GL_ARRAY_BUFFER, 0);
 
-    glDisableClientState (GL_VERTEX_ARRAY);
-
     glDisable (GL_SCISSOR_TEST);
     glDisable (GL_BLEND);