The context_acquire() function does that.
Signed-off-by: Józef Kucia jkucia@codeweavers.com --- dlls/wined3d/view.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/dlls/wined3d/view.c b/dlls/wined3d/view.c index 3322baa2b5b7..bae68133f754 100644 --- a/dlls/wined3d/view.c +++ b/dlls/wined3d/view.c @@ -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;