mesa: fix assertion failure in _mesa_test_formats
authorMarek Olšák <maraeo@gmail.com>
Mon, 11 Jul 2011 11:53:42 +0000 (13:53 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 11 Jul 2011 12:32:32 +0000 (14:32 +0200)
Z32_FLOAT_X24S8 has DataType of GL_NONE.

src/mesa/main/formats.c

index f58b1975672371fca606a70033f1c4c119c3c1c8..e01ea11df975c535535150ae1f48ee8aec642adb 100644 (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);