wined3d: Recreate default_sampler during device reset.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2016-01-07 12:11:31 +01:00 committed by Alexandre Julliard
parent a5889a5cda
commit 9b18f62602
1 changed files with 2 additions and 0 deletions

View File

@ -4508,6 +4508,7 @@ static void delete_opengl_contexts(struct wined3d_device *device, struct wined3d
device->blitter->free_private(device);
device->shader_backend->shader_free_private(device);
destroy_dummy_textures(device, gl_info);
destroy_default_sampler(device);
context_release(context);
@ -4565,6 +4566,7 @@ static HRESULT create_primary_opengl_context(struct wined3d_device *device, stru
swapchain->context[0] = context;
swapchain->num_contexts = 1;
create_dummy_textures(device, context);
create_default_sampler(device);
context_release(context);
return WINED3D_OK;