WineD3D: Enable all bump mapping formats

Stefan Dösinger stefandoesinger at gmx.at
Tue Jul 25 14:10:01 CDT 2006


Half-Life 2 requires those formats when Shader Model 2.0 or 3.0 is available, 
otherwise it tries to create a D3DFMT_UNKNOWN texture and crashes because of 
the returned error. This patch enables all bump mapping formats. Some of them 
have been enabled already for the same reason, now all of them are 
whitelisted altough Bump mapping is not really supported. If bump mapping is 
done by the game with shaders it may work(in Half-Life 2 it does), and Emboss 
Bump mapping works too(but it doesn't use these formats).
-------------- next part --------------
From nobody Mon Sep 17 00:00:00 2001
From: Stefan Dösinger <stefan at codeweavers.com>
Date: Tue Jul 25 21:02:31 2006 +0200
Subject: [PATCH] WineD3D: Enable all Bump formats

---

 dlls/wined3d/directx.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

0004428374bd12557fb5b194fd6ef64f644bbc42
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 067fe4e..d804f93 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1540,16 +1540,13 @@ static HRESULT WINAPI IWineD3DImpl_Check
          */
         case WINED3DFMT_V8U8:
         case WINED3DFMT_V16U16:
-            WARN_(d3d_caps)("[Not supported, but pretended to do]\n");
-            return WINED3D_OK;
-
         case WINED3DFMT_L6V5U5:
         case WINED3DFMT_X8L8V8U8:
         case WINED3DFMT_Q8W8V8U8:
         case WINED3DFMT_W11V11U10:
         case WINED3DFMT_A2W10V10U10:
-            TRACE_(d3d_caps)("[FAILED]\n");
-            return D3DERR_NOTAVAILABLE;
+            WARN_(d3d_caps)("[Not supported, but pretended to do]\n");
+            return WINED3D_OK;
 
         /*****
          *  DXTN Formats: Handled above
-- 
1.2.4



More information about the wine-patches mailing list