Commit 3c023a5d authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Just set the first render target to NULL in wined3d_device_reset().

parent def0558b
......@@ -4704,14 +4704,12 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
if (device->fb.render_targets)
{
if (swapchain->back_buffers && swapchain->back_buffers[0])
wined3d_device_set_render_target(device, 0, swapchain->back_buffers[0], FALSE);
else
wined3d_device_set_render_target(device, 0, swapchain->front_buffer, FALSE);
for (i = 1; i < device->adapter->gl_info.limits.buffers; ++i)
for (i = 0; i < device->adapter->gl_info.limits.buffers; ++i)
{
wined3d_device_set_render_target(device, i, NULL, FALSE);
}
if (swapchain->back_buffers && swapchain->back_buffers[0])
wined3d_device_set_render_target(device, 0, swapchain->back_buffers[0], FALSE);
}
wined3d_device_set_depth_stencil(device, NULL);
......
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