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

wined3d: Only update the drawable on surface unmap for the frontbuffer.

parent 6f8b8bda
......@@ -953,12 +953,8 @@ static void surface_unmap(struct wined3d_surface *surface)
goto done;
}
/* FIXME: The ORM_BACKBUFFER case probably isn't needed, but who knows
* what obscure bugs in backbuffer ORM removing it will uncover. Also,
* this should only be needed for the frontbuffer, but that requires
* present calls to call surface_load_location() on the backbuffer.
* Fix both of those after 1.4. */
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]))
{
......
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