[PATCH 1/7] wined3d: Report ATI1N and ATI2N volume textures as not supported.

Matteo Bruni mbruni at codeweavers.com
Tue Mar 17 09:52:09 CDT 2015


---
 dlls/wined3d/directx.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 3667840..e51f89f 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -4483,18 +4483,19 @@ HRESULT CDECL wined3d_check_device_format(const struct wined3d *wined3d, UINT ad
                 return WINED3DERR_NOTAVAILABLE;
             }
 
-            /* The GL_EXT_texture_compression_s3tc spec requires that loading
-             * an s3tc compressed texture results in an error. While the D3D
-             * refrast does support s3tc volumes, at least the nvidia Windows
-             * driver does not, so we're free not to support this format. */
             switch (check_format_id)
             {
+                /* The GL_EXT_texture_compression_s3tc spec doesn't allow S3TC
+                 * compressed volume textures. */
                 case WINED3DFMT_DXT1:
                 case WINED3DFMT_DXT2:
                 case WINED3DFMT_DXT3:
                 case WINED3DFMT_DXT4:
                 case WINED3DFMT_DXT5:
-                    TRACE("[FAILED] - DXTn does not support 3D textures.\n");
+                /* Same with GL_ARB_texture_compression_rgtc. */
+                case WINED3DFMT_ATI1N:
+                case WINED3DFMT_ATI2N:
+                    TRACE("[FAILED] - compressed volume textures are not supported.\n");
                     return WINED3DERR_NOTAVAILABLE;
 
                 default:
-- 
2.0.5




More information about the wine-patches mailing list