From 7a39d2f833807f8defd2304b0ff180944c23ea0c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 10 May 2000 14:39:53 +0000 Subject: more GL_EXT_convolution work --- src/mesa/main/image.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/main/image.c') diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c index 23c5b776d81..dc6abb39d7d 100644 --- a/src/mesa/main/image.c +++ b/src/mesa/main/image.c @@ -1,4 +1,4 @@ -/* $Id: image.c,v 1.30 2000/05/04 13:48:49 brianp Exp $ */ +/* $Id: image.c,v 1.31 2000/05/10 14:39:53 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -2459,7 +2459,7 @@ _mesa_unpack_float_color_span( GLcontext *ctx, GLenum srcFormat, GLenum srcType, const GLvoid *source, const struct gl_pixelstore_attrib *unpacking, - GLboolean applyTransferOps ) + GLboolean applyTransferOps, GLboolean clamp ) { ASSERT(dstFormat == GL_ALPHA || dstFormat == GL_LUMINANCE || @@ -2601,7 +2601,7 @@ _mesa_unpack_float_color_span( GLcontext *ctx, } /* clamp to [0,1] */ - { + if (clamp) { GLuint i; for (i = 0; i < n; i++) { rgba[i][RCOMP] = CLAMP(rgba[i][RCOMP], 0.0F, 1.0F); -- cgit v1.2.3