wined3d: Avoid surface_from_resource() in swapchain_gdi_present().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2016-04-04 18:43:00 +02:00 committed by Alexandre Julliard
parent 6b8fb1c22e
commit e6e89dbc65
1 changed files with 2 additions and 2 deletions

View File

@ -700,8 +700,8 @@ static void swapchain_gdi_present(struct wined3d_swapchain *swapchain,
{
struct wined3d_surface *front, *back;
front = surface_from_resource(wined3d_texture_get_sub_resource(swapchain->front_buffer, 0));
back = surface_from_resource(wined3d_texture_get_sub_resource(swapchain->back_buffers[0], 0));
front = swapchain->front_buffer->sub_resources[0].u.surface;
back = swapchain->back_buffers[0]->sub_resources[0].u.surface;
/* Flip the DC. */
{