From ced7915ea1977bd9d9aa2a70f54f1f2f774ed567 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Tue, 6 Jul 2010 16:08:06 +0100 Subject: [PATCH] cogl-vertex-buffer: Fix the #define for glDisableVertexAttribArray glDisableVertexAttribArray was defined to glEnableVertexAttribArray so it would probably cause crashes if it was ever used. Presumably nothing is using these yet because the generic attributes are not yet tied to shader attributes in a predictable way. --- clutter/cogl/cogl/cogl-vertex-buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/cogl/cogl/cogl-vertex-buffer.c b/clutter/cogl/cogl/cogl-vertex-buffer.c index a25c26bbd..57a353ecb 100644 --- a/clutter/cogl/cogl/cogl-vertex-buffer.c +++ b/clutter/cogl/cogl/cogl-vertex-buffer.c @@ -183,7 +183,7 @@ #define glVertexAttribPointer ctx->drv.pf_glVertexAttribPointer #define glEnableVertexAttribArray ctx->drv.pf_glEnableVertexAttribArray -#define glDisableVertexAttribArray ctx->drv.pf_glEnableVertexAttribArray +#define glDisableVertexAttribArray ctx->drv.pf_glDisableVertexAttribArray #define MAY_HAVE_PROGRAMABLE_GL #elif defined (HAVE_COGL_GLES2)