From a760ccf6d8a1f94d505b4c211ff4c30bc1d325a8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 3 Dec 2004 15:24:34 +0000 Subject: silence a variety of warnings found with g++ 3.4.2 --- src/mesa/main/blend.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mesa/main/blend.c') diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c index 0257528581..8fadef61b4 100644 --- a/src/mesa/main/blend.c +++ b/src/mesa/main/blend.c @@ -219,7 +219,7 @@ static GLboolean _mesa_validate_blend_equation( GLcontext *ctx, GLenum mode, GLboolean is_separate ) { - switch (mode) { + switch (mode) { case GL_FUNC_ADD: break; case GL_MIN: @@ -286,6 +286,7 @@ _mesa_BlendEquation( GLenum mode ) (*ctx->Driver.BlendEquationSeparate)( ctx, mode, mode ); } + void GLAPIENTRY _mesa_BlendEquationSeparateEXT( GLenum modeRGB, GLenum modeA ) { @@ -527,6 +528,7 @@ _mesa_ColorMask( GLboolean red, GLboolean green, ctx->Driver.ColorMask( ctx, red, green, blue, alpha ); } + /**********************************************************************/ /** \name Initialization */ /*@{*/ @@ -542,7 +544,7 @@ _mesa_ColorMask( GLboolean red, GLboolean green, void _mesa_init_color( GLcontext * ctx ) { /* Color buffer group */ - ctx->Color.IndexMask = 0xffffffff; + ctx->Color.IndexMask = ~0u; ctx->Color.ColorMask[0] = 0xff; ctx->Color.ColorMask[1] = 0xff; ctx->Color.ColorMask[2] = 0xff; -- cgit v1.2.3