wined3d: Do not call wined3d_from_cs() in shader_resource_view_generate_mipmaps().

The context_acquire() function does that.

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 2017-12-07 12:39:56 +01:00 committed by Alexandre Julliard
parent 198340ff67
commit 0879b1730e
1 changed files with 0 additions and 2 deletions

View File

@ -833,8 +833,6 @@ void shader_resource_view_generate_mipmaps(struct wined3d_shader_resource_view *
TRACE("view %p.\n", view);
wined3d_from_cs(view->resource->device->cs);
context = context_acquire(view->resource->device, NULL, 0);
gl_info = context->gl_info;
layer_count = view->desc.u.texture.layer_count;