summaryrefslogtreecommitdiff
path: root/src/mesa/main/pixel.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-08-21 14:22:24 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-08-21 14:22:24 +0000
commitfa4525e289b475b928a7b2c4055af9dd7fe46600 (patch)
tree40eaaa3e4674a89779d1c7962c2b01e2eca86620 /src/mesa/main/pixel.c
parentb1097f24a8410b623deb52069ad7e66bae35944c (diff)
implemented new ImageTransferState bitmask
Diffstat (limited to 'src/mesa/main/pixel.c')
-rw-r--r--src/mesa/main/pixel.c27
1 files changed, 3 insertions, 24 deletions
diff --git a/src/mesa/main/pixel.c b/src/mesa/main/pixel.c
index 7d5d23ec50..8c839b894c 100644
--- a/src/mesa/main/pixel.c
+++ b/src/mesa/main/pixel.c
@@ -1,4 +1,4 @@
-/* $Id: pixel.c,v 1.11 2000/05/07 20:41:30 brianp Exp $ */
+/* $Id: pixel.c,v 1.12 2000/08/21 14:22:24 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -610,29 +610,8 @@ _mesa_PixelTransferf( GLenum pname, GLfloat param )
return;
}
- if (ctx->Pixel.RedScale!=1.0F || ctx->Pixel.RedBias!=0.0F ||
- ctx->Pixel.GreenScale!=1.0F || ctx->Pixel.GreenBias!=0.0F ||
- ctx->Pixel.BlueScale!=1.0F || ctx->Pixel.BlueBias!=0.0F ||
- ctx->Pixel.AlphaScale!=1.0F || ctx->Pixel.AlphaBias!=0.0F) {
- ctx->Pixel.ScaleOrBiasRGBA = GL_TRUE;
- }
- else {
- ctx->Pixel.ScaleOrBiasRGBA = GL_FALSE;
- }
-
- if (ctx->Pixel.PostColorMatrixScale[0] != 1.0F ||
- ctx->Pixel.PostColorMatrixBias[0] != 0.0F ||
- ctx->Pixel.PostColorMatrixScale[1] != 1.0F ||
- ctx->Pixel.PostColorMatrixBias[1] != 0.0F ||
- ctx->Pixel.PostColorMatrixScale[2] != 1.0F ||
- ctx->Pixel.PostColorMatrixBias[2] != 0.0F ||
- ctx->Pixel.PostColorMatrixScale[3] != 1.0F ||
- ctx->Pixel.PostColorMatrixBias[3] != 0.0F) {
- ctx->Pixel.ScaleOrBiasRGBApcm = GL_TRUE;
- }
- else {
- ctx->Pixel.ScaleOrBiasRGBApcm = GL_FALSE;
- }
+ /* signal to recompute the bitmask */
+ ctx->ImageTransferState = UPDATE_IMAGE_TRANSFER_STATE;
}