Henri Verbeet : d3d11: Only complain once about d3d10 interface emulation in d3d11_device_context_SwapDeviceContextState().
Alexandre Julliard
julliard at winehq.org
Mon Jul 5 16:24:20 CDT 2021
Module: wine
Branch: master
Commit: 78bdc84bcb8c08d1a7b5a2789e73d2451112fd6d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=78bdc84bcb8c08d1a7b5a2789e73d2451112fd6d
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Mon Jul 5 17:02:33 2021 +0200
d3d11: Only complain once about d3d10 interface emulation in d3d11_device_context_SwapDeviceContextState().
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3d11/device.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c
index d043af7051a..f8bd8578cdc 100644
--- a/dlls/d3d11/device.c
+++ b/dlls/d3d11/device.c
@@ -2980,6 +2980,7 @@ static void STDMETHODCALLTYPE d3d11_device_context_SwapDeviceContextState(ID3D11
struct d3d_device_context_state *state_impl, *prev_impl;
struct d3d_device *device = context->device;
struct wined3d_state *wined3d_state;
+ static unsigned int once;
TRACE("iface %p, state %p, prev %p.\n", iface, state, prev);
@@ -3010,7 +3011,7 @@ static void STDMETHODCALLTYPE d3d11_device_context_SwapDeviceContextState(ID3D11
device->state = state_impl;
d3d_device_context_state_private_release(prev_impl);
- if (d3d_device_is_d3d10_active(device))
+ if (d3d_device_is_d3d10_active(device) && !once++)
FIXME("D3D10 interface emulation not fully implemented yet!\n");
wined3d_mutex_unlock();
}
More information about the wine-cvs
mailing list