wined3d: Simplify the error path of context_update_window().
This commit is contained in:
parent
03ca2b2932
commit
90d7f3e03f
|
@ -894,13 +894,8 @@ static void context_update_window(struct wined3d_context *context)
|
||||||
if (!(context->hdc = GetDC(context->win_handle)))
|
if (!(context->hdc = GetDC(context->win_handle)))
|
||||||
{
|
{
|
||||||
ERR("Failed to get a device context for window %p.\n", context->win_handle);
|
ERR("Failed to get a device context for window %p.\n", context->win_handle);
|
||||||
goto err;
|
context->valid = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
|
||||||
|
|
||||||
err:
|
|
||||||
context->valid = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void context_destroy_gl_resources(struct wined3d_context *context)
|
static void context_destroy_gl_resources(struct wined3d_context *context)
|
||||||
|
|
Loading…
Reference in New Issue