From 374f3e9e19f064007ea8a864fbd00f1ae7deafd1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 1 Sep 2014 20:01:03 +0200 Subject: [PATCH] mesa: invalidate draw state in glPopClientAttrib Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82538 Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Brian Paul --- src/mesa/main/attrib.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index c656845dff9..2e289b6f1cb 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -1488,6 +1488,10 @@ copy_array_attrib(struct gl_context *ctx, /* skip ArrayBufferObj */ /* skip IndexBufferObj */ + + /* Invalidate draw state. It will be updated during the next draw. */ + dest->DrawMethod = DRAW_NONE; + dest->_DrawArrays = NULL; } /** -- 2.30.2