Initialize extensions after correct context is created.

This commit is contained in:
Vitaly Lipatov 2005-06-21 20:03:18 +00:00 committed by Alexandre Julliard
parent 9048257dd9
commit be2092266e
1 changed files with 5 additions and 3 deletions

View File

@ -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;
}