summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-06-13 14:55:25 +0000
committerBrian Paul <[email protected]>2001-06-13 14:55:25 +0000
commitcc22179cd855dad85a28c40416873a07e8b7cc0c (patch)
tree146f902b9ffbf8c546114bc9a0677ca7a42d5435 /src/mesa/main
parent1178ed817f835e2a9b1fdd33b32d39e2d6070cc8 (diff)
fixed an assertion
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index df7a89d005f..376234285b0 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -1,4 +1,4 @@
-/* $Id: image.c,v 1.61 2001/05/16 20:27:12 brianp Exp $ */
+/* $Id: image.c,v 1.62 2001/06/13 14:55:25 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1720,7 +1720,7 @@ _mesa_pack_rgba_span( GLcontext *ctx,
const struct gl_pixelstore_attrib *dstPacking,
GLuint transferOps)
{
- ASSERT((ctx->NewState & _NEW_PIXEL) == 0);
+ ASSERT((ctx->NewState & _NEW_PIXEL) == 0 || transferOps == 0);
/* Test for optimized case first */
if (transferOps == 0 && dstFormat == GL_RGBA && dstType == CHAN_TYPE) {