Mesa (master): mesa: invalidate draw state in glPopClientAttrib
Marek Olšák
mareko at kemper.freedesktop.org
Thu Sep 4 14:10:26 UTC 2014
Module: Mesa
Branch: master
Commit: 374f3e9e19f064007ea8a864fbd00f1ae7deafd1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=374f3e9e19f064007ea8a864fbd00f1ae7deafd1
Author: Marek Olšák <marek.olsak at amd.com>
Date: Mon Sep 1 20:01:03 2014 +0200
mesa: invalidate draw state in glPopClientAttrib
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82538
Cc: mesa-stable at lists.freedesktop.org
Reviewed-by: Brian Paul <brianp at vmware.com>
---
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 c656845..2e289b6 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;
}
/**
More information about the mesa-commit
mailing list