aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-03-04 15:02:15 -0500
committerMarge Bot <[email protected]>2020-03-20 00:00:22 +0000
commit951c6acb074b18da0e595825fe05c77a0fbee96d (patch)
treeac69f5a2831bd547cf9da0a820710a07e8d1df93 /src/mesa/main
parent87f6be4456f3def3ccf6578714a993374ce98e5d (diff)
glthread: don't execute any custom VAO and BindBuffer code in the Core profile
It's not needed, because user pointers can never occur there. Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4251>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/glthread_varray.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/glthread_varray.c b/src/mesa/main/glthread_varray.c
index 8786f0f2d09..7a261552202 100644
--- a/src/mesa/main/glthread_varray.c
+++ b/src/mesa/main/glthread_varray.c
@@ -139,6 +139,6 @@ _mesa_glthread_AttribPointer(struct gl_context *ctx)
{
struct glthread_state *glthread = ctx->GLThread;
- if (ctx->API != API_OPENGL_CORE && !glthread->vertex_array_is_vbo)
+ if (!glthread->vertex_array_is_vbo)
glthread->CurrentVAO->HasUserPointer = true;
}