From e134eaa2c5619b47e944e33d053ee23c61da7aa9 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 11 Jul 2011 13:53:42 +0200 Subject: mesa: fix assertion failure in _mesa_test_formats Z32_FLOAT_X24S8 has DataType of GL_NONE. --- src/mesa/main/formats.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/formats.c') diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c index f58b1975672..e01ea11df97 100644 --- a/src/mesa/main/formats.c +++ b/src/mesa/main/formats.c @@ -1485,7 +1485,8 @@ _mesa_test_formats(void) info->DataType == GL_SIGNED_NORMALIZED || info->DataType == GL_UNSIGNED_INT || info->DataType == GL_INT || - info->DataType == GL_FLOAT); + info->DataType == GL_FLOAT || + info->DataType == GL_NONE); if (info->BaseFormat == GL_RGB) { assert(info->RedBits > 0); -- cgit v1.2.3