diff options
author | Brian Paul <[email protected]> | 2010-01-04 11:26:56 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-01-04 11:27:17 -0700 |
commit | 195568e4cb0524d71db0ac68cf5a95b33a1af6b4 (patch) | |
tree | 2b555473ca352672cbfdfc9346052af107cf0db6 | |
parent | 1baaf111c8c42ed7f7218c46038f32eb51b9c6eb (diff) |
mesa: more detailed error message in extract_float_rgba()
-rw-r--r-- | src/mesa/main/image.c | 4 |
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; } |