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:
parent
c633ffb95c
commit
e50ff74808
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue