mesa: invalidate draw state in glPopClientAttrib
authorMarek Olšák <marek.olsak@amd.com>
Mon, 1 Sep 2014 18:01:03 +0000 (20:01 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 4 Sep 2014 14:09:56 +0000 (16:09 +0200)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82538

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/attrib.c

index c656845dff9ca4e298b3646a0146d9260173d3f0..2e289b6f1cb2e426ae869d85ded21b1eaf55f1aa 100644 (file)
@@ -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;
 }
 
 /**