From bfd4836867d6d90eaeae6ccbc02e37678b59b8f1 Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Tue, 24 Feb 2015 13:38:20 +0100 Subject: [PATCH] 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 1903807729e..9482c7584d0 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) { -- 2.11.4.GIT