mesa: fix assertion failure in _mesa_test_formats

Z32_FLOAT_X24S8 has DataType of GL_NONE.
This commit is contained in:
Marek Olšák
2011-07-11 13:53:42 +02:00
parent 12265d26dd
commit e134eaa2c5
+2 -1
View File
@@ -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);