[PATCH] When volume textures aren't around (GL_EXT_texture3D not supported) return WINED3DERR_NOTAVAILABLE;

Roderick Colenbrander thunderbird2k at gmx.net
Fri Mar 21 15:53:56 CDT 2008


---
 dlls/wined3d/directx.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 79da9c1..7ed9739 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -2472,6 +2472,9 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt
                     return WINED3DERR_NOTAVAILABLE;
                 }
             }
+        } else {
+            TRACE_(d3d_caps)("[FAILED] - No volume texture support\n");
+            return WINED3DERR_NOTAVAILABLE;
         }
 
         /* Filter formats that need conversion; For one part, this conversion is unimplemented,
-- 
1.5.3.8


--========GMX191001206133367624149--



More information about the wine-patches mailing list