summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstate.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-03-21 22:49:03 -0400
committerMarek Olšák <[email protected]>2020-04-06 10:28:53 -0400
commitf3cce7087a562f77be7306e70d4e62bc214bb5fa (patch)
tree1d5f93dc13deb0e7822a9296a4b48f61442ec665 /src/mesa/main/texstate.c
parente630271e0ec3eee7d921d76d3924873f6ee6b59b (diff)
mesa: don't ever bind NullBufferObj for glBindBuffer targets
Since VAOs don't use NullBufferObj for vertex attribs anymore, let's remove more uses of NullBufferObj. Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4466>
Diffstat (limited to 'src/mesa/main/texstate.c')
-rw-r--r--src/mesa/main/texstate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index 9b64b64ae58..dfcfc4e8015 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -1072,8 +1072,7 @@ _mesa_init_texture(struct gl_context *ctx)
return GL_FALSE;
/* GL_ARB_texture_buffer_object */
- _mesa_reference_buffer_object(ctx, &ctx->Texture.BufferObject,
- ctx->Shared->NullBufferObj);
+ _mesa_reference_buffer_object(ctx, &ctx->Texture.BufferObject, NULL);
ctx->Texture.NumCurrentTexUsed = 0;