mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 01:18:06 +02:00
mesa: no-op glBufferSubData() on size==0
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=31439
NOTE: this is a candidate for the 7.9 branch
(cherry picked from commit 6e2e136428)
This commit is contained in:
parent
4e7cdca57a
commit
0ff45dd5d7
1 changed files with 3 additions and 0 deletions
|
|
@ -1199,6 +1199,9 @@ _mesa_BufferSubDataARB(GLenum target, GLintptrARB offset,
|
|||
return;
|
||||
}
|
||||
|
||||
if (size == 0)
|
||||
return;
|
||||
|
||||
bufObj->Written = GL_TRUE;
|
||||
|
||||
ASSERT(ctx->Driver.BufferSubData);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue