summaryrefslogtreecommitdiff
path: root/src/mesa/main/glthread.h
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2022-08-23 15:40:01 -0400
committerMarge Bot <emma+marge@anholt.net>2022-09-21 14:54:49 +0000
commit6b6f8621709801e360ea69ebd675ac7caae512f2 (patch)
tree43de50a1f7f693639870d1eed2efe067fa18f22a /src/mesa/main/glthread.h
parentc716827f697956960c354277bb5eae2b17925913 (diff)
glthread: generate errors for glGet functions between glBegin/End
Acked-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18223>
Diffstat (limited to 'src/mesa/main/glthread.h')
-rw-r--r--src/mesa/main/glthread.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/glthread.h b/src/mesa/main/glthread.h
index de9783443b0..6ed17a3c69d 100644
--- a/src/mesa/main/glthread.h
+++ b/src/mesa/main/glthread.h
@@ -154,6 +154,7 @@ struct glthread_state
/** Whether GLThread is enabled. */
bool enabled;
+ bool inside_begin_end;
/** Display lists. */
GLenum ListMode; /**< Zero if not inside display list, else list mode. */