From: Marek Olšák Date: Mon, 1 Sep 2014 18:01:03 +0000 (+0200) Subject: mesa: invalidate draw state in glPopClientAttrib X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=374f3e9e19f064007ea8a864fbd00f1ae7deafd1;p=mesa.git 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 --- 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; } /**