Commit 6cc5f9a6 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

d3d11: Use wined3d_device_context_set_blend_state().

parent cd171632
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment