summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-11-09 12:24:49 -0700
committerBrian Paul <brianp@vmware.com>2010-11-09 12:24:51 -0700
commit6e2e136428b97d2424ebe626a30d7237015f7ea3 (patch)
tree8844bc05364ac36d5b4cdc63ee4a8f93556642a0
parent61ea76c8da5511d8d3f1fc3ea409ddbef89e7488 (diff)
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
-rw-r--r--src/mesa/main/bufferobj.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 0a68008a10..76f8259a28 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -1189,6 +1189,9 @@ _mesa_BufferSubDataARB(GLenum target, GLintptrARB offset,
return;
}
+ if (size == 0)
+ return;
+
bufObj->Written = GL_TRUE;
ASSERT(ctx->Driver.BufferSubData);