From fa4525e289b475b928a7b2c4055af9dd7fe46600 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 21 Aug 2000 14:22:24 +0000 Subject: implemented new ImageTransferState bitmask --- src/mesa/main/pixel.c | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) (limited to 'src/mesa/main/pixel.c') 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; } -- cgit v1.2.3