d3d9: Improve CheckDeviceState stub to run Firefox 4 Beta 7
André Hentschel
nerv at dawncrow.de
Thu Nov 11 13:35:20 CST 2010
New Firefox Beta uses some 3D stuff so this improvement makes it possible to at least display something.
Fixes http://bugs.winehq.org/show_bug.cgi?id=25111
---
dlls/d3d9/device.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index b097ece..1c2aa99 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -2790,9 +2790,14 @@ static HRESULT WINAPI IDirect3DDevice9ExImpl_GetMaximumFrameLatency(IDirect3DDev
static HRESULT WINAPI IDirect3DDevice9ExImpl_CheckDeviceState(IDirect3DDevice9Ex *iface, HWND dst_window)
{
- FIXME("iface %p, dst_window %p stub!\n", iface, dst_window);
+ static int i;
- return WINED3DERR_INVALIDCALL;
+ TRACE("iface %p, dst_window %p stub!\n", iface, dst_window);
+
+ if (!i++)
+ FIXME("iface %p, dst_window %p stub!\n", iface, dst_window);
+
+ return WINED3D_OK;
}
static HRESULT WINAPI IDirect3DDevice9ExImpl_CreateRenderTargetEx(IDirect3DDevice9Ex *iface,
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list