Mesa (master): mesa: improve error message

Brian Paul brianp at kemper.freedesktop.org
Thu Nov 11 14:43:59 UTC 2010


Module: Mesa
Branch: master
Commit: c9126d66fa8e535a53d45adda44c3275fa2e229f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c9126d66fa8e535a53d45adda44c3275fa2e229f

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Nov 11 07:43:30 2010 -0700

mesa: improve error message

---

 src/mesa/main/formats.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c
index e18a9fc..46a1fe0 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;
    }




More information about the mesa-commit mailing list