Mesa (master): mesa: include bad type in error string of _mesa_pack_depth_span

Tapani Pälli tpalli at kemper.freedesktop.org
Thu Oct 8 06:27:02 UTC 2015


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

Author: Tapani Pälli <tapani.palli at intel.com>
Date:   Thu Oct  8 09:25:16 2015 +0300

mesa: include bad type in error string of _mesa_pack_depth_span

Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/mesa/main/pack.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c
index ef89e75..00e31b0 100644
--- a/src/mesa/main/pack.c
+++ b/src/mesa/main/pack.c
@@ -1123,7 +1123,8 @@ _mesa_pack_depth_span( struct gl_context *ctx, GLuint n, GLvoid *dest,
       }
       break;
    default:
-      _mesa_problem(ctx, "bad type in _mesa_pack_depth_span");
+      _mesa_problem(ctx, "bad type in _mesa_pack_depth_span (%s)",
+                    _mesa_enum_to_string(dstType));
    }
 
    free(depthCopy);




More information about the mesa-commit mailing list