fix assertion in read_depth_pixels()
authorNicolai Haehnle <nhaehnle@gmail.com>
Sun, 18 Mar 2007 17:02:35 +0000 (11:02 -0600)
committerBrian <brian@yutani.localnet.net>
Sun, 18 Mar 2007 17:02:35 +0000 (11:02 -0600)
src/mesa/swrast/s_readpix.c

index 15dc8106b4a9f3ecc08e7eda60b54addcdf2d29b..c5524c0630681824a55a67191291ac94abbd359a 100644 (file)
@@ -119,7 +119,7 @@ read_depth_pixels( GLcontext *ctx,
             && !biasOrScale && !packing->SwapBytes) {
       /* Special case: directly read 24-bit unsigned depth values. */
       GLint j;
-      ASSERT(rb->InternalFormat == GL_DEPTH_COMPONENT32);
+      ASSERT(rb->InternalFormat == GL_DEPTH_COMPONENT24);
       ASSERT(rb->DataType == GL_UNSIGNED_INT);
       for (j = 0; j < height; j++, y++) {
          GLuint *dest = (GLuint *)