From c169bfb42829e4cc5d76be62a6eb407fdc2d003d Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 23 Apr 2020 13:35:05 +0200 Subject: [PATCH] opengl32: Add stub for wglGetDefaultProcAddress(). Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48898 Signed-off-by: Alexandre Julliard --- dlls/opengl32/make_opengl | 6 ++++++ dlls/opengl32/opengl32.spec | 1 + dlls/opengl32/wgl.c | 9 +++++++++ 3 files changed, 16 insertions(+) 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.@) */