[PATCH 6/6] d3d11: Use wined3d_device_context_set_blend_state().
Zebediah Figura
z.figura12 at gmail.com
Tue Mar 9 20:09:01 CST 2021
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/d3d11/device.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c
index 6a6744d22af..6f98227bef3 100644
--- a/dlls/d3d11/device.c
+++ b/dlls/d3d11/device.c
@@ -1000,7 +1000,7 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_OMSetRenderTargetsAndUnord
static void STDMETHODCALLTYPE d3d11_immediate_context_OMSetBlendState(ID3D11DeviceContext1 *iface,
ID3D11BlendState *blend_state, const float blend_factor[4], UINT sample_mask)
{
- struct d3d_device *device = device_from_immediate_ID3D11DeviceContext1(iface);
+ struct d3d11_immediate_context *context = impl_from_ID3D11DeviceContext1(iface);
static const float default_blend_factor[] = {1.0f, 1.0f, 1.0f, 1.0f};
struct d3d_blend_state *blend_state_impl;
@@ -1012,10 +1012,10 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_OMSetBlendState(ID3D11Devi
wined3d_mutex_lock();
if (!(blend_state_impl = unsafe_impl_from_ID3D11BlendState(blend_state)))
- wined3d_device_set_blend_state(device->wined3d_device, NULL,
+ wined3d_device_context_set_blend_state(context->wined3d_context, NULL,
(const struct wined3d_color *)blend_factor, sample_mask);
else
- wined3d_device_set_blend_state(device->wined3d_device, blend_state_impl->wined3d_state,
+ wined3d_device_context_set_blend_state(context->wined3d_context, blend_state_impl->wined3d_state,
(const struct wined3d_color *)blend_factor, sample_mask);
wined3d_mutex_unlock();
}
--
2.20.1
More information about the wine-devel
mailing list