fix ctx->Pixel.PostConvolutionScale/Bias subscript bugs
This commit is contained in:
parent
fd08463dea
commit
8d9db3dd03
|
@ -1,8 +1,8 @@
|
||||||
/*
|
/*
|
||||||
* Mesa 3-D graphics library
|
* Mesa 3-D graphics library
|
||||||
* Version: 6.5.2
|
* Version: 6.5.3
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
|
* Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
|
@ -1040,16 +1040,16 @@ _mesa_PixelTransferf( GLenum pname, GLfloat param )
|
||||||
ctx->Pixel.PostConvolutionBias[2] = param;
|
ctx->Pixel.PostConvolutionBias[2] = param;
|
||||||
break;
|
break;
|
||||||
case GL_POST_CONVOLUTION_ALPHA_SCALE:
|
case GL_POST_CONVOLUTION_ALPHA_SCALE:
|
||||||
if (ctx->Pixel.PostConvolutionScale[2] == param)
|
if (ctx->Pixel.PostConvolutionScale[3] == param)
|
||||||
return;
|
return;
|
||||||
FLUSH_VERTICES(ctx, _NEW_PIXEL);
|
FLUSH_VERTICES(ctx, _NEW_PIXEL);
|
||||||
ctx->Pixel.PostConvolutionScale[2] = param;
|
ctx->Pixel.PostConvolutionScale[3] = param;
|
||||||
break;
|
break;
|
||||||
case GL_POST_CONVOLUTION_ALPHA_BIAS:
|
case GL_POST_CONVOLUTION_ALPHA_BIAS:
|
||||||
if (ctx->Pixel.PostConvolutionBias[2] == param)
|
if (ctx->Pixel.PostConvolutionBias[3] == param)
|
||||||
return;
|
return;
|
||||||
FLUSH_VERTICES(ctx, _NEW_PIXEL);
|
FLUSH_VERTICES(ctx, _NEW_PIXEL);
|
||||||
ctx->Pixel.PostConvolutionBias[2] = param;
|
ctx->Pixel.PostConvolutionBias[3] = param;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
_mesa_error( ctx, GL_INVALID_ENUM, "glPixelTransfer(pname)" );
|
_mesa_error( ctx, GL_INVALID_ENUM, "glPixelTransfer(pname)" );
|
||||||
|
|
Loading…
Reference in New Issue