summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2012-07-10 11:07:54 -0700
committerJordan Justen <[email protected]>2012-08-14 17:07:42 -0700
commit1a814217c336529b6f3133f9491ff5920ecaf346 (patch)
treec1145f010d5ccdf3b43a5661c6deccc3a25dac42 /src/mesa/main
parentb3dd048cbb310b2c3ea40f09f9d89944851b2048 (diff)
mesa unpack: call _mesa_problem when unpack function is not available
Signed-off-by: Jordan Justen <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/format_unpack.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c
index 529c416a8cc..bd218520f77 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];
}