Patch adds missing type (used with NV_read_depth) so that it gets handled correctly. Also add type to _mesa_problem output to aid debugging.
Signed-off-by: Tapani Pälli <tapani.pa...@intel.com> --- src/mesa/main/pack.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c index 7147fd6..54a0c42 100644 --- a/src/mesa/main/pack.c +++ b/src/mesa/main/pack.c @@ -1074,6 +1074,7 @@ _mesa_pack_depth_span( struct gl_context *ctx, GLuint n, GLvoid *dest, } } break; + case GL_UNSIGNED_INT_24_8: case GL_UNSIGNED_INT: { GLuint *dst = (GLuint *) dest; @@ -1124,7 +1125,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); -- 2.4.3 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev