diff options
author | Brian Paul <[email protected]> | 2004-12-03 15:24:34 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-12-03 15:24:34 +0000 |
commit | a760ccf6d8a1f94d505b4c211ff4c30bc1d325a8 (patch) | |
tree | 27b266d1b4acc7d09551c4f3ca30129f74e39f18 /src/mesa/main/blend.c | |
parent | 025aa9efcd8213ce530818cfd8be1b6d9e945b2c (diff) |
silence a variety of warnings found with g++ 3.4.2
Diffstat (limited to 'src/mesa/main/blend.c')
-rw-r--r-- | src/mesa/main/blend.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c index 0257528581b..8fadef61b48 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; |