d3d11: Silence a d3d11_immediate_context_OMSetBlendState fixme
André Hentschel
nerv at dawncrow.de
Mon Feb 6 14:27:04 CST 2017
Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
For https://bugs.winehq.org/show_bug.cgi?id=42017
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 85f84fe..219d85c 100644
--- a/dlls/d3d11/device.c
+++ b/dlls/d3d11/device.c
@@ -686,6 +686,7 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_OMSetBlendState(ID3D11Devi
struct d3d_device *device = device_from_immediate_ID3D11DeviceContext(iface);
static const float default_blend_factor[] = {1.0f, 1.0f, 1.0f, 1.0f};
const D3D11_BLEND_DESC *desc;
+ static int once;
TRACE("iface %p, blend_state %p, blend_factor %s, sample_mask 0x%08x.\n",
iface, blend_state, debug_float4(blend_factor), sample_mask);
@@ -693,7 +694,7 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_OMSetBlendState(ID3D11Devi
if (!blend_factor)
blend_factor = default_blend_factor;
- if (blend_factor[0] != 1.0f || blend_factor[1] != 1.0f || blend_factor[2] != 1.0f || blend_factor[3] != 1.0f)
+ if (!once++ && (blend_factor[0] != 1.0f || blend_factor[1] != 1.0f || blend_factor[2] != 1.0f || blend_factor[3] != 1.0f))
FIXME("Ignoring blend factor %s.\n", debug_float4(blend_factor));
wined3d_mutex_lock();
--
2.7.4
More information about the wine-patches
mailing list