OSDN Git Service

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 4e7cd94..8fbb0a8 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 */
    }