Mesa (master): mesa unpack: call _mesa_problem when unpack function is not available
Jordan Justen
jljusten at kemper.freedesktop.org
Wed Aug 15 00:23:42 UTC 2012
Module: Mesa
Branch: master
Commit: 1a814217c336529b6f3133f9491ff5920ecaf346
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1a814217c336529b6f3133f9491ff5920ecaf346
Author: Jordan Justen <jordan.l.justen at intel.com>
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 <jordan.l.justen at intel.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
---
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];
}
More information about the mesa-commit
mailing list