From: Brian Paul Date: Sun, 4 Nov 2012 23:43:44 +0000 (-0700) Subject: mesa: fix MSVC signed/unsigned warnings in context.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=406df38a6673cb7d19ce652f71fac1047b2279d0;p=mesa.git mesa: fix MSVC signed/unsigned warnings in context.c Reviewed-by: Jose Fonseca --- 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);