diff options
author | Brian Paul <[email protected]> | 2012-11-04 16:43:44 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-11-06 07:42:37 -0700 |
commit | 406df38a6673cb7d19ce652f71fac1047b2279d0 (patch) | |
tree | 9b9c52436072e9a57c0314c9fa2661c7dfc026ba /src/mesa/main/context.c | |
parent | 27d70b7266cc5e8562b4cccae763976834eb0ce2 (diff) |
mesa: fix MSVC signed/unsigned warnings in context.c
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index a4dedeea2e5..0508378b7be 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -706,9 +706,9 @@ check_context_limits(struct gl_context *ctx) assert(MAX_TEXTURE_LEVELS >= MAX_CUBE_TEXTURE_LEVELS); /* Max texture size should be <= max viewport size (render to texture) */ - assert((1 << (ctx->Const.MaxTextureLevels - 1)) + assert((1U << (ctx->Const.MaxTextureLevels - 1)) <= ctx->Const.MaxViewportWidth); - assert((1 << (ctx->Const.MaxTextureLevels - 1)) + assert((1U << (ctx->Const.MaxTextureLevels - 1)) <= ctx->Const.MaxViewportHeight); assert(ctx->Const.MaxDrawBuffers <= MAX_DRAW_BUFFERS); |