Mesa (master): mesa: silence MSVC signed/unsigned warning in texstorage.c
Brian Paul
brianp at kemper.freedesktop.org
Tue Nov 6 15:11:34 UTC 2012
Module: Mesa
Branch: master
Commit: 0dddf592edad3e9a73c91af0687a688875ab2099
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0dddf592edad3e9a73c91af0687a688875ab2099
Author: Brian Paul <brianp at vmware.com>
Date: Sun Nov 4 16:43:44 2012 -0700
mesa: silence MSVC signed/unsigned warning in texstorage.c
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
---
src/mesa/main/texstorage.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c
index 283aefa..968f6f9 100644
--- a/src/mesa/main/texstorage.c
+++ b/src/mesa/main/texstorage.c
@@ -292,7 +292,7 @@ tex_storage_error_check(struct gl_context *ctx, GLuint dims, GLenum target,
/* check levels against width/height/depth */
maxDim = MAX3(width, height, depth);
- if (levels > _mesa_logbase2(maxDim) + 1) {
+ if (levels > (GLint) _mesa_logbase2(maxDim) + 1) {
_mesa_error(ctx, GL_INVALID_OPERATION,
"glTexStorage%uD(too many levels for max texture dimension)",
dims);
More information about the mesa-commit
mailing list