mesa: fill in Z32_FLOAT_X24S8 in _mesa_format_matches_format_and_type
authorMarek Olšák <maraeo@gmail.com>
Mon, 28 Jan 2013 20:13:18 +0000 (21:13 +0100)
committerMarek Olšák <maraeo@gmail.com>
Mon, 11 Feb 2013 18:43:01 +0000 (19:43 +0100)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/formats.c

index 423e883e70069f552eaae2e126f3cdac1a91b590..4598d65938e9aa7e061a3cf4cb7d8f3b31d590f0 100644 (file)
@@ -3352,7 +3352,8 @@ _mesa_format_matches_format_and_type(gl_format gl_format,
       return format == GL_DEPTH_COMPONENT && type == GL_FLOAT && !swapBytes;
 
    case MESA_FORMAT_Z32_FLOAT_X24S8:
-      return GL_FALSE;
+      return format == GL_DEPTH_STENCIL &&
+             type == GL_FLOAT_32_UNSIGNED_INT_24_8_REV && !swapBytes;
 
    case MESA_FORMAT_XRGB4444_UNORM:
    case MESA_FORMAT_XRGB1555_UNORM: