Matteo Bruni : d3d9: Remove D3DFMT_R8G8B8 special handling.
Alexandre Julliard
julliard at winehq.org
Tue Nov 15 13:17:34 CST 2011
Module: wine
Branch: master
Commit: 276216360e91ab8b987fc23d5a63cf16cd2eea27
URL: http://source.winehq.org/git/wine.git/?a=commit;h=276216360e91ab8b987fc23d5a63cf16cd2eea27
Author: Matteo Bruni <mbruni at codeweavers.com>
Date: Tue Nov 15 15:16:58 2011 +0100
d3d9: Remove D3DFMT_R8G8B8 special handling.
---
dlls/d3d9/directx.c | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
diff --git a/dlls/d3d9/directx.c b/dlls/d3d9/directx.c
index b356d13..1770239 100644
--- a/dlls/d3d9/directx.c
+++ b/dlls/d3d9/directx.c
@@ -238,18 +238,6 @@ static HRESULT WINAPI IDirect3D9Impl_CheckDeviceFormat(IDirect3D9Ex *iface, UINT
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);
- /* This format is nothing special and it is supported perfectly.
- * However, ati and nvidia driver on windows do not mark this format as
- * supported (tested with the dxCapsViewer) and pretending to
- * support this format uncovers a bug in Battlefield 1942 (fonts are missing)
- * So do the same as Windows drivers and pretend not to support it on dx8 and 9
- */
- if(CheckFormat == D3DFMT_R8G8B8)
- {
- 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