wined3d: When volume textures aren't around (GL_EXT_texture3D not supported) return...
authorRoderick Colenbrander <thunderbird2k@gmx.net>
Fri, 21 Mar 2008 20:53:56 +0000 (20:53 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Sat, 22 Mar 2008 10:44:11 +0000 (11:44 +0100)
dlls/wined3d/directx.c

index 79da9c171563bfa053fb661d03162890cd4e6b4b..7ed9739d7033b6238632543a1698e1edb3abd4ff 100644 (file)
@@ -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,