Module: Mesa
Branch: main
Commit: ddc721e15c6260e5a505f7e5fab2115e4cbd7c72
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ddc721e15c6260e5a505f7e5fab2115e4cbd7c72

Author: Pierre-Eric Pelloux-Prayer <[email protected]>
Date:   Tue Jan 17 16:06:00 2023 +0100

glthread: fix glArrayElement handling

This must be marshalled synchronously or the attrib pointers' content
might change by the time we use them.

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8068
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20748>

---

 src/mapi/glapi/gen/gl_API.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index 03793d95f9f..8ead49dbc3d 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -3189,7 +3189,7 @@
     <enum name="CLIENT_VERTEX_ARRAY_BIT"                  value="0x00000002"/>
     <enum name="CLIENT_ALL_ATTRIB_BITS"                   value="0xFFFFFFFF"/>
 
-    <function name="ArrayElement" deprecated="3.1" exec="beginend">
+    <function name="ArrayElement" deprecated="3.1" exec="beginend" 
marshal="sync">
         <param name="i" type="GLint"/>
         <glx handcode="true"/>
     </function>

Reply via email to