Skip to content
Snippets Groups Projects
Commit e15e2569 authored by Riccardo Bortolato's avatar Riccardo Bortolato Committed by Alexandre Julliard
Browse files

wined3d: Call wined3d_texture_decref() instead of wined3d_surface_decref() in...

wined3d: Call wined3d_texture_decref() instead of wined3d_surface_decref() in swapchain_gl_present().

Signed-off-by: default avatarRiccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: default avatarHenri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent b6c7cd97
No related branches found
No related tags found
No related merge requests found
......@@ -583,7 +583,7 @@ static void swapchain_gl_present(struct wined3d_swapchain *swapchain, const RECT
fb->depth_stencil->width, fb->depth_stencil->height);
if (ds == swapchain->device->onscreen_depth_stencil)
{
wined3d_surface_decref(swapchain->device->onscreen_depth_stencil);
wined3d_texture_decref(swapchain->device->onscreen_depth_stencil->container);
swapchain->device->onscreen_depth_stencil = NULL;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment