mesa: improve error message
authorBrian Paul <brianp@vmware.com>
Thu, 11 Nov 2010 14:43:30 +0000 (07:43 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 11 Nov 2010 14:43:46 +0000 (07:43 -0700)
src/mesa/main/formats.c

index e18a9fc9977fedf9e55de005ac24257a4a486b31..46a1fe006afe726e80ee6d22fea0762b580f6ac9 100644 (file)
@@ -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;
    }