summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-11-11 07:43:30 -0700
committerBrian Paul <[email protected]>2010-11-11 07:43:46 -0700
commitc9126d66fa8e535a53d45adda44c3275fa2e229f (patch)
tree7ae69b60f0896a0e32c3a11b189d2d4182806e90 /src/mesa/main
parent624661cae4e0ccb53fd0101cc4b2dd6fdc77cead (diff)
mesa: improve error message
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/formats.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c
index e18a9fc9977..46a1fe006af 100644
--- a/src/mesa/main/formats.c
+++ b/src/mesa/main/formats.c
@@ -1428,7 +1428,8 @@ _mesa_format_to_type_and_comps(gl_format format,
default:
- _mesa_problem(NULL, "bad format in _mesa_format_to_type_and_comps");
+ _mesa_problem(NULL, "bad format %s in _mesa_format_to_type_and_comps",
+ _mesa_get_format_name(format));
*datatype = 0;
*comps = 1;
}