From 42232bf8b19c099823eb07a95f2a5b668ad5427b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Mon, 27 Jan 2014 20:08:40 +0100 Subject: [PATCH] mesa: call _ae_invalidate_state when changing array format or VBO binding --- src/mesa/main/varray.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 1150289..2c97c1b 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -155,6 +155,7 @@ bind_vertex_buffer(struct gl_context *ctx, GLuint index, binding->Stride = stride; arrayObj->NewArrays |= binding->_BoundArrays; + _ae_invalidate_state(ctx, _NEW_ARRAY); } } @@ -342,6 +343,8 @@ update_array_format(struct gl_context *ctx, ctx->Array.ArrayObj->NewArrays |= VERT_BIT(attrib); ctx->NewState |= _NEW_ARRAY; + _ae_invalidate_state(ctx, _NEW_ARRAY); + return true; } -- 1.8.5.3