On 07/23/2012 10:59 AM, Jordan Justen wrote:
If the unpack functions is not available, use _mesa_problem
rather than asserting.

Signed-off-by: Jordan Justen<jordan.l.jus...@intel.com>
---
  src/mesa/main/format_unpack.c |    5 +++++
  1 file changed, 5 insertions(+)

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];
  }


(Getting back to this patch series)

Reviewed-by: Brian Paul <bri...@vmware.com>
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to