Commit bf1001e1 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

d3d11: Use wined3d_device_context_set_scissor_rects().

parent 1ec66956
......@@ -1189,7 +1189,7 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_RSSetViewports(ID3D11Devic
static void STDMETHODCALLTYPE d3d11_immediate_context_RSSetScissorRects(ID3D11DeviceContext1 *iface,
UINT rect_count, const D3D11_RECT *rects)
{
struct d3d_device *device = device_from_immediate_ID3D11DeviceContext1(iface);
struct d3d11_immediate_context *context = impl_from_ID3D11DeviceContext1(iface);
TRACE("iface %p, rect_count %u, rects %p.\n", iface, rect_count, rects);
......@@ -1197,7 +1197,7 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_RSSetScissorRects(ID3D11De
return;
wined3d_mutex_lock();
wined3d_device_set_scissor_rects(device->wined3d_device, rect_count, rects);
wined3d_device_context_set_scissor_rects(context->wined3d_context, rect_count, rects);
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