mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
mesa: print more info in buffer_object_subdata_range_good() error message
This commit is contained in:
parent
a61e164ae0
commit
b330f1f13c
1 changed files with 4 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue