diff options
author | Marek Olšák <[email protected]> | 2020-03-21 22:49:03 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2020-04-06 10:28:53 -0400 |
commit | f3cce7087a562f77be7306e70d4e62bc214bb5fa (patch) | |
tree | 1d5f93dc13deb0e7822a9296a4b48f61442ec665 /src/mesa/main/draw.c | |
parent | e630271e0ec3eee7d921d76d3924873f6ee6b59b (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/draw.c')
-rw-r--r-- | src/mesa/main/draw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/draw.c b/src/mesa/main/draw.c index 5bb254e00d2..53946a72b20 100644 --- a/src/mesa/main/draw.c +++ b/src/mesa/main/draw.c @@ -917,7 +917,8 @@ _mesa_DrawRangeElementsBaseVertex(GLenum mode, GLuint start, GLuint end, "(start %u, end %u, type 0x%x, count %d) ElemBuf %u, " "base %d\n", start, end, type, count, - ctx->Array.VAO->IndexBufferObj->Name, basevertex); + ctx->Array.VAO->IndexBufferObj ? + ctx->Array.VAO->IndexBufferObj->Name : 0, basevertex); } if ((int) start + basevertex < 0 || end + basevertex >= max_element) |