From 80adc8ac3b45ee43f1e5f12164a56d63e63a2e65 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Wed, 27 Oct 2010 10:16:18 -0700 Subject: [PATCH] swrast: Print out format on unexpected failure in _swrast_ReadPixels. --- src/mesa/swrast/s_readpix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ } -- 2.30.2