mesa: include bad type in error string of _mesa_pack_depth_span
authorTapani Pälli <tapani.palli@intel.com>
Thu, 8 Oct 2015 06:25:16 +0000 (09:25 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 8 Oct 2015 06:25:16 +0000 (09:25 +0300)
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/pack.c

index ef89e75..00e31b0 100644 (file)
@@ -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);