opengl32: Return a NULL pointer for functions requiring unsupported or disabled extensions.

This commit is contained in:
Matteo Bruni 2015-02-24 13:38:20 +01:00 committed by Alexandre Julliard
parent 9a1f66a4db
commit bfd4836867
1 changed files with 3 additions and 0 deletions

View File

@ -875,7 +875,10 @@ PROC WINAPI wglGetProcAddress( LPCSTR name )
void *driver_func = funcs->wgl.p_wglGetProcAddress( name ); void *driver_func = funcs->wgl.p_wglGetProcAddress( name );
if (!is_extension_supported(ext_ret->extension)) if (!is_extension_supported(ext_ret->extension))
{
WARN("Extension %s required for %s not supported\n", ext_ret->extension, name); WARN("Extension %s required for %s not supported\n", ext_ret->extension, name);
return NULL;
}
if (driver_func == NULL) if (driver_func == NULL)
{ {