[PATCH 1/3] wined3d: Disable WINED3DFMT_B8G8R8_UNORM. (try 3)

Matteo Bruni mbruni at codeweavers.com
Tue Nov 15 08:16:56 CST 2011


Fixes http://bugs.winehq.org/show_bug.cgi?id=13932.

Try 2: Remove incorrect comment.
Try 3: Those patches need to be correctly ordered in a series or things
break, sorry for the noise...
---
 dlls/wined3d/directx.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index ad79276..8846576 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -3406,7 +3406,9 @@ static BOOL CheckTextureCapability(const struct wined3d_adapter *adapter, const
         /*****
          *  supported: RGB(A) formats
          */
-        case WINED3DFMT_B8G8R8_UNORM: /* Enable for dx7, blacklisted for 8 and 9 above */
+        case WINED3DFMT_B8G8R8_UNORM:
+            TRACE_(d3d_caps)("[FAILED] - Not enumerated on Windows\n");
+            return FALSE;
         case WINED3DFMT_B8G8R8A8_UNORM:
         case WINED3DFMT_B8G8R8X8_UNORM:
         case WINED3DFMT_B5G6R5_UNORM:
@@ -3677,6 +3679,8 @@ static BOOL CheckSurfaceCapability(const struct wined3d_adapter *adapter,
         switch (check_format->id)
         {
             case WINED3DFMT_B8G8R8_UNORM:
+                TRACE_(d3d_caps)("[FAILED] - Not enumerated on Windows\n");
+                return FALSE;
             case WINED3DFMT_B8G8R8A8_UNORM:
             case WINED3DFMT_B8G8R8X8_UNORM:
             case WINED3DFMT_B5G6R5_UNORM:
-- 
1.7.3.4




More information about the wine-patches mailing list