Commit 00a40114 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Drop the ORM_BACKBUFFER special case in surface_unmap().

parent d1e00648
......@@ -953,10 +953,8 @@ static void surface_unmap(struct wined3d_surface *surface)
goto done;
}
if ((surface->container.type == WINED3D_CONTAINER_SWAPCHAIN
if (surface->container.type == WINED3D_CONTAINER_SWAPCHAIN
&& surface->container.u.swapchain->front_buffer == surface)
|| (wined3d_settings.offscreen_rendering_mode == ORM_BACKBUFFER
&& device->fb.render_targets && surface == device->fb.render_targets[0]))
{
if (!surface->dirtyRect.left && !surface->dirtyRect.top
&& surface->dirtyRect.right == surface->resource.width
......
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