summaryrefslogtreecommitdiff
path: root/src/mesa/main/drawpix.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-08-30 18:22:28 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-08-30 18:22:28 +0000
commitf93b3dd69e744cf1dd6b102a11cdb07c2df4a967 (patch)
treea772727015e4a994cb562b84d7abc934472e8afc /src/mesa/main/drawpix.c
parent116970154dc3bb148178e1a9fe38554fbbd133c8 (diff)
more convolution work
Diffstat (limited to 'src/mesa/main/drawpix.c')
-rw-r--r--src/mesa/main/drawpix.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/mesa/main/drawpix.c b/src/mesa/main/drawpix.c
index 562db485b5..93dd66a042 100644
--- a/src/mesa/main/drawpix.c
+++ b/src/mesa/main/drawpix.c
@@ -1,4 +1,4 @@
-/* $Id: drawpix.c,v 1.30 2000/08/23 14:32:06 brianp Exp $ */
+/* $Id: drawpix.c,v 1.31 2000/08/30 18:22:28 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -746,17 +746,6 @@ draw_rgba_pixels( GLcontext *ctx, GLint x, GLint y,
* we'll proceed with the rest of the transfer operations and
* rasterize the image.
*/
- const GLuint preConvTransferOps =
- IMAGE_SCALE_BIAS_BIT |
- IMAGE_SHIFT_OFFSET_BIT |
- IMAGE_MAP_COLOR_BIT |
- IMAGE_COLOR_TABLE_BIT;
- const GLuint postConvTransferOps =
- IMAGE_POST_CONVOLUTION_COLOR_TABLE_BIT |
- IMAGE_COLOR_MATRIX_BIT |
- IMAGE_POST_COLOR_MATRIX_COLOR_TABLE_BIT |
- IMAGE_HISTOGRAM_BIT |
- IMAGE_MIN_MAX_BIT;
GLint row;
GLfloat *dest, *tmpImage;
@@ -778,9 +767,9 @@ draw_rgba_pixels( GLcontext *ctx, GLint x, GLint y,
const GLvoid *source = _mesa_image_address(unpack,
pixels, width, height, format, type, 0, row, 0);
_mesa_unpack_float_color_span(ctx, width, GL_RGBA, (void *) dest,
- format, type, source, unpack,
- transferOps & preConvTransferOps,
- GL_FALSE);
+ format, type, source, unpack,
+ transferOps & IMAGE_PRE_CONVOLUTION_BITS,
+ GL_FALSE);
dest += width * 4;
}
@@ -799,7 +788,7 @@ draw_rgba_pixels( GLcontext *ctx, GLint x, GLint y,
pixels = convImage;
format = GL_RGBA;
type = GL_FLOAT;
- transferOps &= postConvTransferOps;
+ transferOps &= IMAGE_POST_CONVOLUTION_BITS;
}
/*