diff options
author | Brian Paul <[email protected]> | 2013-06-26 09:34:02 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-06-26 10:42:59 -0600 |
commit | bc6eb8068ff2faed93b79d5858c223da9d0c7689 (patch) | |
tree | 3b3ba2173ba72d5ed4ba4534961df2f3741aa31e /src/mesa/state_tracker/st_gen_mipmap.c | |
parent | 202299d16e64eea0552c6c9a96139823a8244e4d (diff) |
st/mesa: add casts to silence MSVC warnings
Diffstat (limited to 'src/mesa/state_tracker/st_gen_mipmap.c')
-rw-r--r-- | src/mesa/state_tracker/st_gen_mipmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_gen_mipmap.c b/src/mesa/state_tracker/st_gen_mipmap.c index e5512af2a0d..d01a21ebffc 100644 --- a/src/mesa/state_tracker/st_gen_mipmap.c +++ b/src/mesa/state_tracker/st_gen_mipmap.c @@ -118,7 +118,7 @@ compute_num_levels(struct gl_context *ctx, baseImage = _mesa_get_tex_image(ctx, texObj, target, texObj->BaseLevel); numLevels = texObj->BaseLevel + baseImage->MaxNumLevels; - numLevels = MIN2(numLevels, texObj->MaxLevel + 1); + numLevels = MIN2(numLevels, (GLuint) texObj->MaxLevel + 1); assert(numLevels >= 1); return numLevels; |