Commit 90d7f3e0 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

wined3d: Simplify the error path of context_update_window().

parent 03ca2b29
......@@ -894,13 +894,8 @@ static void context_update_window(struct wined3d_context *context)
if (!(context->hdc = GetDC(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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment