diff --git a/dlls/opengl32/make_opengl b/dlls/opengl32/make_opengl index cd04b343887..ebfd3c9161e 100755 --- a/dlls/opengl32/make_opengl +++ b/dlls/opengl32/make_opengl @@ -381,6 +381,8 @@ my %remapped_wgl_functions = "wglUseFontOutlines" => 0, ); +my @extra_wgl_functions = ( "wglGetDefaultProcAddress" ); + my %supported_wgl_extensions = ( "WGL_ARB_create_context" => 1, @@ -502,6 +504,10 @@ sub parse_file($) } $wgl_functions{$name} = $functions{$cmd->{name}}; } + foreach my $name (@extra_wgl_functions) + { + $wgl_functions{$name} = $functions{$name} if defined $functions{$name}; + } } next unless defined $norm_categories{$feature->{name}}; foreach my $cmd ($feature->findnodes("./require/command")) diff --git a/dlls/opengl32/opengl32.spec b/dlls/opengl32/opengl32.spec index 4d4288cd48e..94a3dfd0757 100644 --- a/dlls/opengl32/opengl32.spec +++ b/dlls/opengl32/opengl32.spec @@ -344,6 +344,7 @@ @ stdcall wglDescribePixelFormat(long long long ptr) @ stdcall wglGetCurrentContext() @ stdcall wglGetCurrentDC() +@ stdcall wglGetDefaultProcAddress(str) @ stdcall wglGetLayerPaletteEntries(long long long long ptr) @ stdcall wglGetPixelFormat(long) @ stdcall wglGetProcAddress(str) diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c index 008778c5325..a1422fbfcd4 100644 --- a/dlls/opengl32/wgl.c +++ b/dlls/opengl32/wgl.c @@ -949,6 +949,15 @@ int WINAPI wglSetLayerPaletteEntries(HDC hdc, return 0; } +/*********************************************************************** + * wglGetDefaultProcAddress (OPENGL32.@) + */ +PROC WINAPI wglGetDefaultProcAddress( LPCSTR name ) +{ + FIXME( "%s: stub\n", debugstr_a(name)); + return NULL; +} + /*********************************************************************** * wglSwapLayerBuffers (OPENGL32.@) */