Commit bfd48368 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

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

parent 9a1f66a4
...@@ -875,7 +875,10 @@ PROC WINAPI wglGetProcAddress( LPCSTR name ) ...@@ -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)
{ {
......
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