Commit def0558b authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent eb10471b
......@@ -1130,18 +1130,11 @@ HRESULT CDECL wined3d_device_uninit_3d(struct wined3d_device *device)
FIXME("Something's still holding the auto depth stencil buffer (%p).\n", surface);
}
for (i = 1; i < gl_info->limits.buffers; ++i)
for (i = 0; i < gl_info->limits.buffers; ++i)
{
wined3d_device_set_render_target(device, i, NULL, FALSE);
}
surface = device->fb.render_targets[0];
TRACE("Setting rendertarget 0 to NULL\n");
device->fb.render_targets[0] = NULL;
TRACE("Releasing the render target at %p\n", surface);
if (surface)
wined3d_surface_decref(surface);
context_release(context);
for (i = 0; i < device->swapchain_count; ++i)
......
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