diff options
author | Ian Romanick <[email protected]> | 2013-11-20 12:58:37 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2013-12-04 17:22:42 -0800 |
commit | 6c84fc2dbfdadf33dc7d3ddcd146e525c94eac99 (patch) | |
tree | f5922d13f7481c019b5e5491605f7ffbf9da1ef1 /src/mesa/main | |
parent | 7144b768727c106ca6e38e29aacc558036ffe0b6 (diff) |
mesa: Silence GCC warning in _mesa_test_texobj_completeness
main/texobj.c: In function '_mesa_test_texobj_completeness':
main/texobj.c:553:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
main/texobj.c:553:193: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
main/texobj.c:553:254: warning: signed and unsigned type in conditional expression [-Wsign-compare]
main/texobj.c:553:148: warning: signed and unsigned type in conditional expression [-Wsign-compare]
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/texobj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 4c3d4687027..012e873f5aa 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -552,7 +552,7 @@ _mesa_test_texobj_completeness( const struct gl_context *ctx, t->_MaxLevel = MIN3(t->MaxLevel, /* 'p' in the GL spec */ - baseLevel + baseImage->MaxNumLevels - 1, + (int) (baseLevel + baseImage->MaxNumLevels - 1), /* 'q' in the GL spec */ maxLevels - 1); |