diff options
author | Roland Scheidegger <[email protected]> | 2004-06-03 20:53:27 +0000 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2004-06-03 20:53:27 +0000 |
commit | 4d8c0398f19c249d3e3917d52311acf5cf8cccd9 (patch) | |
tree | 3c29729930c0bb3a60c3b1d9835174b97c4155b9 /src | |
parent | da1766f12f79ae512007ab3457bdd34ec65347ab (diff) |
fix minor signedness issue in assertion
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_texstate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_texstate.c b/src/mesa/drivers/dri/r200/r200_texstate.c index eb899153572..586a6df61c4 100644 --- a/src/mesa/drivers/dri/r200/r200_texstate.c +++ b/src/mesa/drivers/dri/r200/r200_texstate.c @@ -478,7 +478,7 @@ static GLboolean r200UpdateTextureEnv( GLcontext *ctx, int unit ) * Extract the color and alpha combine function arguments. */ for ( i = 0 ; i < numColorArgs ; i++ ) { - const GLuint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR; + const GLint op = texUnit->_CurrentCombine->OperandRGB[i] - GL_SRC_COLOR; assert(op >= 0); assert(op <= 3); switch ( texUnit->_CurrentCombine->SourceRGB[i] ) { @@ -509,7 +509,7 @@ static GLboolean r200UpdateTextureEnv( GLcontext *ctx, int unit ) } for ( i = 0 ; i < numAlphaArgs ; i++ ) { - const GLuint op = texUnit->_CurrentCombine->OperandA[i] - GL_SRC_ALPHA; + const GLint op = texUnit->_CurrentCombine->OperandA[i] - GL_SRC_ALPHA; assert(op >= 0); assert(op <= 1); switch ( texUnit->_CurrentCombine->SourceA[i] ) { |