mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
wined3d: Make context_update_window() just mark the GL context as needing to be set rather than setting it.
This commit is contained in:
parent
baa85a097a
commit
b8569d2f30
@ -852,6 +852,7 @@ static void context_update_window(struct wined3d_context *context)
|
||||
context->valid = 1;
|
||||
|
||||
context->win_handle = context->swapchain->win_handle;
|
||||
context->needs_set = 1;
|
||||
|
||||
if (!(context->hdc = GetDC(context->win_handle)))
|
||||
{
|
||||
@ -859,8 +860,6 @@ static void context_update_window(struct wined3d_context *context)
|
||||
goto err;
|
||||
}
|
||||
|
||||
context_set_gl_context(context);
|
||||
|
||||
return;
|
||||
|
||||
err:
|
||||
|
Loading…
Reference in New Issue
Block a user