wined3d: Avoid surface_from_resource() in swapchain_gl_frontbuffer_updated().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2016-03-02 19:24:16 +01:00 committed by Alexandre Julliard
parent b309b831de
commit c059191e0f
1 changed files with 1 additions and 1 deletions

View File

@ -652,7 +652,7 @@ static void swapchain_gl_frontbuffer_updated(struct wined3d_swapchain *swapchain
struct wined3d_surface *surface;
struct wined3d_context *context;
surface = surface_from_resource(swapchain->front_buffer->sub_resources[0].resource);
surface = swapchain->front_buffer->sub_resources[0].u.surface;
context = context_acquire(swapchain->device, surface);
surface_load_location(surface, context, surface->container->resource.draw_binding);
context_release(context);