diff options
author | Brian Paul <[email protected]> | 2012-01-04 14:15:53 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-01-05 08:14:26 -0700 |
commit | b330f1f13c4b491b3fd7083535b8942cb16a7589 (patch) | |
tree | d696e72af5c1f8ad0a780d86868c00ee7f024c70 /src/mesa/main | |
parent | a61e164ae09cc2aec5df483809a2c6d74e36bf99 (diff) |
mesa: print more info in buffer_object_subdata_range_good() error message
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/bufferobj.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index cc6f6753dbf..66957e46d88 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -184,7 +184,10 @@ buffer_object_subdata_range_good( struct gl_context * ctx, GLenum target, } if (offset + size > bufObj->Size) { _mesa_error(ctx, GL_INVALID_VALUE, - "%s(size + offset > buffer size)", caller); + "%s(offset %lu + size %lu > buffer size %lu)", caller, + (unsigned long) offset, + (unsigned long) size, + (unsigned long) bufObj->Size); return NULL; } if (_mesa_bufferobj_mapped(bufObj)) { |