mesa: s/%u/%d/ in _mesa_error() call in check_layer()
The layer parameter is signed. Fixes the error message seen when running the arb_texture_multisample-errors test which checks a negative layer value. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
323e6029a3
commit
08ba4a103f
|
@ -3189,8 +3189,7 @@ check_layer(struct gl_context *ctx, GLenum target, GLint layer,
|
|||
* and layer is negative."
|
||||
*/
|
||||
if (layer < 0) {
|
||||
_mesa_error(ctx, GL_INVALID_VALUE,
|
||||
"%s(layer %u < 0)", caller, layer);
|
||||
_mesa_error(ctx, GL_INVALID_VALUE, "%s(layer %d < 0)", caller, layer);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue