Module: wine Branch: master Commit: bfd4836867d6d90eaeae6ccbc02e37678b59b8f1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bfd4836867d6d90eaeae6ccbc0...
Author: Matteo Bruni mbruni@codeweavers.com Date: Tue Feb 24 13:38:20 2015 +0100
opengl32: Return a NULL pointer for functions requiring unsupported or disabled extensions.
---
dlls/opengl32/wgl.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c index 1903807..9482c75 100644 --- a/dlls/opengl32/wgl.c +++ b/dlls/opengl32/wgl.c @@ -875,7 +875,10 @@ PROC WINAPI wglGetProcAddress( LPCSTR name ) void *driver_func = funcs->wgl.p_wglGetProcAddress( name );
if (!is_extension_supported(ext_ret->extension)) + { WARN("Extension %s required for %s not supported\n", ext_ret->extension, name); + return NULL; + }
if (driver_func == NULL) {