Commit be209226 authored by Vitaly Lipatov's avatar Vitaly Lipatov Committed by Alexandre Julliard

Initialize extensions after correct context is created.

parent 9048257d
......@@ -882,12 +882,14 @@ static BOOL process_attach(void)
RegCloseKey(hkey);
}
/* Initialize also the list of supported WGL extensions. */
wgl_ext_initialize_extensions(default_display, DefaultScreen(default_display), p_glXGetProcAddressARB, internal_gl_disabled_extensions);
if (default_cx == NULL) {
ERR("Could not create default context.\n");
}
else
{
/* After context initialize also the list of supported WGL extensions. */
wgl_ext_initialize_extensions(default_display, DefaultScreen(default_display), p_glXGetProcAddressARB, internal_gl_disabled_extensions);
}
return TRUE;
}
......
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