From a8335ae19e3f50283d6826f6c2aa0839a8ad82f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Thu, 23 Jan 2014 19:18:56 +0100 Subject: [PATCH 2/2] mesa: call _ae_invalidate_state when enabling/disabling generic arrays --- src/mesa/main/varray.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index b73a396..1150289 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -37,6 +37,7 @@ #include "varray.h" #include "arrayobj.h" #include "main/dispatch.h" +#include "api_arrayelt.h" /** Used to do error checking for GL_EXT_vertex_array_bgra */ @@ -683,6 +684,8 @@ _mesa_EnableVertexAttribArray(GLuint index) arrayObj->VertexAttrib[VERT_ATTRIB_GENERIC(index)].Enabled = GL_TRUE; arrayObj->_Enabled |= VERT_BIT_GENERIC(index); arrayObj->NewArrays |= VERT_BIT_GENERIC(index); + + _ae_invalidate_state(ctx, _NEW_ARRAY); } } @@ -709,6 +712,8 @@ _mesa_DisableVertexAttribArray(GLuint index) arrayObj->VertexAttrib[VERT_ATTRIB_GENERIC(index)].Enabled = GL_FALSE; arrayObj->_Enabled &= ~VERT_BIT_GENERIC(index); arrayObj->NewArrays |= VERT_BIT_GENERIC(index); + + _ae_invalidate_state(ctx, _NEW_ARRAY); } } -- 1.8.5.3