OSDN Git Service

removed bogus assertions
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 13 Feb 2001 23:54:12 +0000 (23:54 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 13 Feb 2001 23:54:12 +0000 (23:54 +0000)
src/mesa/main/image.c

index dfb43c1..2693fdb 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: image.c,v 1.53 2001/01/23 23:39:36 brianp Exp $ */
+/* $Id: image.c,v 1.54 2001/02/13 23:54:12 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -2505,9 +2505,6 @@ _mesa_unpack_chan_color_span( GLcontext *ctx,
           srcType == GL_UNSIGNED_INT_10_10_10_2 ||
           srcType == GL_UNSIGNED_INT_2_10_10_10_REV);
 
-   /* this is intended for RGBA mode only */
-   assert(ctx->Visual.rgbMode);
-
    /* Try simple cases first */
    if (transferOps == 0 && srcType == CHAN_TYPE) {
       if (dstFormat == GL_RGBA) {
@@ -2829,9 +2826,6 @@ _mesa_unpack_float_color_span( GLcontext *ctx,
           srcType == GL_UNSIGNED_INT_10_10_10_2 ||
           srcType == GL_UNSIGNED_INT_2_10_10_10_REV);
 
-   /* this is intended for RGBA mode only */
-   assert(ctx->Visual.rgbMode);
-
    /* general solution, no special cases, yet */
    {
       GLfloat rgba[MAX_WIDTH][4];