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:
Brian Paul 2017-12-05 09:57:23 -07:00
parent 323e6029a3
commit 08ba4a103f
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}