From: Brian Paul Date: Wed, 4 Jan 2012 21:15:53 +0000 (-0700) Subject: mesa: print more info in buffer_object_subdata_range_good() error message X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b330f1f13c4b491b3fd7083535b8942cb16a7589;p=mesa.git mesa: print more info in buffer_object_subdata_range_good() error message --- 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)) {