Matteo Bruni : d3d8: Remove D3DFMT_R8G8B8 special handling.

Alexandre Julliard julliard at winehq.org
Tue Nov 15 13:17:34 CST 2011


Module: wine
Branch: master
Commit: 77fa1a5c67527f46cd3d76fb2260bfa84ca2a757
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=77fa1a5c67527f46cd3d76fb2260bfa84ca2a757

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Tue Nov 15 15:16:57 2011 +0100

d3d8: Remove D3DFMT_R8G8B8 special handling.

---

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

diff --git a/dlls/d3d8/directx.c b/dlls/d3d8/directx.c
index 7618c0a..b40895e 100644
--- a/dlls/d3d8/directx.c
+++ b/dlls/d3d8/directx.c
@@ -229,14 +229,6 @@ static HRESULT WINAPI IDirect3D8Impl_CheckDeviceFormat(LPDIRECT3D8 iface, UINT A
     TRACE("iface %p, adapter %u, device_type %#x, adapter_format %#x, usage %#x, resource_type %#x, format %#x.\n",
             iface, Adapter, DeviceType, AdapterFormat, Usage, RType, CheckFormat);
 
-    if(CheckFormat == D3DFMT_R8G8B8)
-    {
-        /* See comment in dlls/d3d9/directx.c, IDirect3D9Impl_CheckDeviceFormat for details */
-        WARN("D3DFMT_R8G8B8 is not available on windows, returning D3DERR_NOTAVAILABLE\n");
-        return D3DERR_NOTAVAILABLE;
-    }
-
-
     switch(RType) {
         case D3DRTYPE_VERTEXBUFFER:
         case D3DRTYPE_INDEXBUFFER:




More information about the wine-cvs mailing list