swrast: Print out format on unexpected failure in _swrast_DrawPixels.
authorVinson Lee <vlee@vmware.com>
Wed, 20 Oct 2010 22:27:48 +0000 (15:27 -0700)
committerVinson Lee <vlee@vmware.com>
Wed, 20 Oct 2010 22:27:48 +0000 (15:27 -0700)
src/mesa/swrast/s_drawpix.c

index 4e7cd9414fdfac6e75786d1669c9752fa9013110..8fbb0a8d101e21e79b72353160d323d5fabf1280 100644 (file)
@@ -751,7 +751,7 @@ _swrast_DrawPixels( struct gl_context *ctx,
                                 type, unpack, pixels);
       break;
    default:
-      _mesa_problem(ctx, "unexpected format in _swrast_DrawPixels");
+      _mesa_problem(ctx, "unexpected format 0x%x in _swrast_DrawPixels", format);
       /* don't return yet, clean-up */
    }