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:
Brian Paul 2010-11-09 12:24:49 -07:00 committed by Ian Romanick
parent 4e7cdca57a
commit 0ff45dd5d7

View file

@ -1199,6 +1199,9 @@ _mesa_BufferSubDataARB(GLenum target, GLintptrARB offset,
return;
}
if (size == 0)
return;
bufObj->Written = GL_TRUE;
ASSERT(ctx->Driver.BufferSubData);