Alexandre Julliard : opengl32: Add stub for wglGetDefaultProcAddress().
Alexandre Julliard
julliard at winehq.org
Thu Apr 23 14:54:32 CDT 2020
Module: wine
Branch: master
Commit: c169bfb42829e4cc5d76be62a6eb407fdc2d003d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=c169bfb42829e4cc5d76be62a6eb407fdc2d003d
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Apr 23 13:35:05 2020 +0200
opengl32: Add stub for wglGetDefaultProcAddress().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48898
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 cd04b34388..ebfd3c9161 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 4d4288cd48..94a3dfd075 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 008778c532..a1422fbfcd 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.@)
*/
More information about the wine-cvs
mailing list