From f3cce7087a562f77be7306e70d4e62bc214bb5fa Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sat, 21 Mar 2020 22:49:03 -0400 Subject: 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 Part-of: --- src/mesa/main/texstate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mesa/main/texstate.c') 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; -- cgit v1.2.3