From 08ba4a103f64b3f8c98dff155dbfef64499fea8b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 5 Dec 2017 09:57:23 -0700 Subject: mesa: s/%u/%d/ in _mesa_error() call in check_layer() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/mesa/main/fbobject.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mesa/main') diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index f7702f1c13b..30287abf7c8 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -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; } -- cgit v1.2.3