summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/image.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-01-04 11:26:56 -0700
committerBrian Paul <[email protected]>2010-01-04 11:27:17 -0700
commit195568e4cb0524d71db0ac68cf5a95b33a1af6b4 (patch)
tree2b555473ca352672cbfdfc9346052af107cf0db6 /src/mesa/main/image.c
parent1baaf111c8c42ed7f7218c46038f32eb51b9c6eb (diff)
mesa: more detailed error message in extract_float_rgba()
Diffstat (limited to 'src/mesa/main/image.c')
-rw-r--r--src/mesa/main/image.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index 139e56a96be..a5ec11dd2a2 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -33,6 +33,7 @@
#include "glheader.h"
#include "colormac.h"
#include "context.h"
+#include "enums.h"
#include "image.h"
#include "imports.h"
#include "macros.h"
@@ -3351,7 +3352,8 @@ extract_float_rgba(GLuint n, GLfloat rgba[][4],
stride = 2;
break;
default:
- _mesa_problem(NULL, "bad srcFormat in extract float data");
+ _mesa_problem(NULL, "bad srcFormat %s in extract float data",
+ _mesa_lookup_enum_by_nr(srcFormat));
return;
}