[PATCH] WineD3D: Disable D3DFMT_R3G3B2=0A=

unknown (none) stefan at .
Tue Aug 19 13:57:13 CDT 2008


=0A=
This format is not supported by any Windows driver as far as I can see, =
so it=0A=
only has the potential to confuse applications. Furthermore it seems that=0A=
mipmapping doesn't work properly on this format on the opengl side=0A=
---=0A=
 dlls/wined3d/directx.c |    5 ++++-=0A=
 1 files changed, 4 insertions(+), 1 deletions(-)=0A=
=0A=
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c=0A=
index 356dd52..7742347 100644=0A=
--- a/dlls/wined3d/directx.c=0A=
+++ b/dlls/wined3d/directx.c=0A=
@@ -2202,7 +2202,6 @@ static BOOL CheckTextureCapability(UINT Adapter, =
WINED3DDEVTYPE DeviceType, WINE=0A=
         case WINED3DFMT_X1R5G5B5:=0A=
         case WINED3DFMT_A1R5G5B5:=0A=
         case WINED3DFMT_A4R4G4B4:=0A=
-        case WINED3DFMT_R3G3B2:=0A=
         case WINED3DFMT_A8:=0A=
         case WINED3DFMT_X4R4G4B4:=0A=
         case WINED3DFMT_A8B8G8R8:=0A=
@@ -2213,6 +2212,10 @@ static BOOL CheckTextureCapability(UINT Adapter, =
WINED3DDEVTYPE DeviceType, WINE=0A=
             TRACE_(d3d_caps)("[OK]\n");=0A=
             return TRUE;=0A=
 =0A=
+        case WINED3DFMT_R3G3B2:=0A=
+            TRACE_(d3d_caps)("[FAILED] - Not supported on Windows\n");=0A=
+            return FALSE;=0A=
+=0A=
         /*****=0A=
          *  supported: Palettized=0A=
          */=0A=
-- =0A=
1.5.6.4=0A=
=0A=

------=_NextPart_000_0209_01C90793.E1440C90--




More information about the wine-patches mailing list