projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
298d7a2
)
mesa: silence MSVC signed/unsigned comparison warning in texstorage.c
author
Brian Paul
<brianp@vmware.com>
Sat, 27 Oct 2012 14:58:19 +0000
(08:58 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 29 Oct 2012 23:56:04 +0000
(17:56 -0600)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/main/texstorage.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texstorage.c
b/src/mesa/main/texstorage.c
index ca02ef3017d7f1ba9215f090161cf07304ec28c7..283aefad30882f7744a06da26d1419e653586d12 100644
(file)
--- a/
src/mesa/main/texstorage.c
+++ b/
src/mesa/main/texstorage.c
@@
-284,7
+284,7
@@
tex_storage_error_check(struct gl_context *ctx, GLuint dims, GLenum target,
}
/* check levels against maximum (note different error than above) */
- if (levels > _mesa_max_texture_levels(ctx, target)) {
+ if (levels >
(GLint)
_mesa_max_texture_levels(ctx, target)) {
_mesa_error(ctx, GL_INVALID_OPERATION,
"glTexStorage%uD(levels too large)", dims);
return GL_TRUE;