swrast: Print out format on unexpected failure in _swrast_ReadPixels.
authorVinson Lee <vlee@vmware.com>
Wed, 27 Oct 2010 17:16:18 +0000 (10:16 -0700)
committerVinson Lee <vlee@vmware.com>
Wed, 27 Oct 2010 17:16:18 +0000 (10:16 -0700)
src/mesa/swrast/s_readpix.c

index 6ddacab1cb1663993f29135cbd0948f443727c59..5e6356c0d549e14b62915a69c8a419e0f2c89c3a 100644 (file)
@@ -514,7 +514,7 @@ _swrast_ReadPixels( struct gl_context *ctx,
                                    type, pixels, &clippedPacking);
          break;
       default:
-        _mesa_problem(ctx, "unexpected format in _swrast_ReadPixels");
+        _mesa_problem(ctx, "unexpected format 0x%x in _swrast_ReadPixels", format);
          /* don't return yet, clean-up */
    }