From: Vinson Lee Date: Wed, 27 Oct 2010 17:16:18 +0000 (-0700) Subject: swrast: Print out format on unexpected failure in _swrast_ReadPixels. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=80adc8ac3b45ee43f1e5f12164a56d63e63a2e65;p=mesa.git swrast: Print out format on unexpected failure in _swrast_ReadPixels. --- diff --git a/src/mesa/swrast/s_readpix.c b/src/mesa/swrast/s_readpix.c index 6ddacab1cb1..5e6356c0d54 100644 --- a/src/mesa/swrast/s_readpix.c +++ b/src/mesa/swrast/s_readpix.c @@ -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 */ }