summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_readpix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/swrast/s_readpix.c')
-rw-r--r--src/mesa/swrast/s_readpix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_readpix.c b/src/mesa/swrast/s_readpix.c
index 55fa60749e..5e6356c0d5 100644
--- a/src/mesa/swrast/s_readpix.c
+++ b/src/mesa/swrast/s_readpix.c
@@ -29,8 +29,9 @@
#include "main/feedback.h"
#include "main/formats.h"
#include "main/image.h"
-#include "main/macros.h"
#include "main/imports.h"
+#include "main/macros.h"
+#include "main/pack.h"
#include "main/state.h"
#include "s_context.h"
@@ -513,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 */
}