Module: Mesa Branch: master Commit: 1a814217c336529b6f3133f9491ff5920ecaf346 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1a814217c336529b6f3133f9491ff5920ecaf346
Author: Jordan Justen <[email protected]> Date: Tue Jul 10 11:07:54 2012 -0700 mesa unpack: call _mesa_problem when unpack function is not available Signed-off-by: Jordan Justen <[email protected]> Reviewed-by: Brian Paul <[email protected]> --- src/mesa/main/format_unpack.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c index 529c416..bd21852 100644 --- a/src/mesa/main/format_unpack.c +++ b/src/mesa/main/format_unpack.c @@ -1604,6 +1604,11 @@ get_unpack_rgba_function(gl_format format) initialized = GL_TRUE; } + if (table[format] == NULL) { + _mesa_problem(NULL, "unsupported unpack for format %s", + _mesa_get_format_name(format)); + } + return table[format]; } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
