wined3d: Avoid surface_from_resource() in swapchain_gdi_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-31 22:48:53 +02:00 committed by Alexandre Julliard
parent c633ffb95c
commit e50ff74808
1 changed files with 1 additions and 1 deletions

View File

@ -659,7 +659,7 @@ static void swapchain_gdi_frontbuffer_updated(struct wined3d_swapchain *swapchai
TRACE("swapchain %p.\n", swapchain);
front = surface_from_resource(wined3d_texture_get_sub_resource(swapchain->front_buffer, 0));
front = swapchain->front_buffer->sub_resources[0].u.surface;
if (swapchain->palette)
wined3d_palette_apply_to_dc(swapchain->palette, front->hDC);