aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/formats.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-07-11 13:53:42 +0200
committerMarek Olšák <[email protected]>2011-07-11 14:32:32 +0200
commite134eaa2c5619b47e944e33d053ee23c61da7aa9 (patch)
tree2207d49a1e0f1b7f8c56048a5720e643f3c81ed6 /src/mesa/main/formats.c
parent12265d26ddc72f62de927ac24e12ab41fcd8d1c5 (diff)
mesa: fix assertion failure in _mesa_test_formats
Z32_FLOAT_X24S8 has DataType of GL_NONE.
Diffstat (limited to 'src/mesa/main/formats.c')
-rw-r--r--src/mesa/main/formats.c3
1 files changed, 2 insertions, 1 deletions
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);