opengl32: Return a NULL pointer for functions requiring unsupported or disabled extensions.
This commit is contained in:
parent
9a1f66a4db
commit
bfd4836867
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue