projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
323e602
)
mesa: s/%u/%d/ in _mesa_error() call in check_layer()
author
Brian Paul
<brianp@vmware.com>
Tue, 5 Dec 2017 16:57:23 +0000
(09:57 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 5 Dec 2017 22:32:25 +0000
(15:32 -0700)
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>
src/mesa/main/fbobject.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/fbobject.c
b/src/mesa/main/fbobject.c
index f7702f1c13b6ec3f162ff72cd57bcc9624e86d7a..30287abf7c8c216caae3a2a5b597397cb097f6d1 100644
(file)
--- 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;
}