Signed-off-by: Rémi Bernon rbernon@codeweavers.com ---
I wasn't sure if this was required, but the testbot doesn't regenerate theses apparently. Also, I manually edited the generated files to only include the new extension, it looks like the file is a bit outdated compared to the OpenGL registry.
dlls/opengl32/opengl_ext.c | 12 ++++++++++-- dlls/opengl32/opengl_norm.c | 2 ++ include/wine/wgl_driver.h | 1 + 3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/dlls/opengl32/opengl_ext.c b/dlls/opengl32/opengl_ext.c index c27af43c359..0e05c74ef26 100644 --- a/dlls/opengl32/opengl_ext.c +++ b/dlls/opengl32/opengl_ext.c @@ -8,7 +8,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(opengl);
-const int extension_registry_size = 2679; +const int extension_registry_size = 2680;
static void WINAPI glAccumxOES( GLenum op, GLfixed value ) { @@ -18650,6 +18650,13 @@ static const GLchar * WINAPI wglQueryRendererStringWINE( HDC dc, GLint renderer, return funcs->ext.p_wglQueryRendererStringWINE( dc, renderer, attribute ); }
+static BOOL WINAPI wglSetFullscreenExclusiveWINE( HWND hwnd, int fullscreen_exclusive ) +{ + const struct opengl_funcs *funcs = NtCurrentTeb()->glTable; + TRACE( "(%d)\n", fullscreen_exclusive ); + return funcs->ext.p_wglSetFullscreenExclusiveWINE( hwnd, fullscreen_exclusive ); +} + static BOOL WINAPI wglSetPixelFormatWINE( HDC hdc, int format ) { const struct opengl_funcs *funcs = get_dc_funcs( hdc ); @@ -18681,7 +18688,7 @@ extern int WINAPI wglReleasePbufferDCARB( HPBUFFERARB hPbuffer, HDC hDC ) DECLSP extern BOOL WINAPI wglReleaseTexImageARB( HPBUFFERARB hPbuffer, int iBuffer ) DECLSPEC_HIDDEN; extern BOOL WINAPI wglSetPbufferAttribARB( HPBUFFERARB hPbuffer, const int *piAttribList ) DECLSPEC_HIDDEN;
-const OpenGL_extension extension_registry[2679] = { +const OpenGL_extension extension_registry[2680] = { { "glAccumxOES", "GL_OES_fixed_point", glAccumxOES }, { "glAcquireKeyedMutexWin32EXT", "GL_EXT_win32_keyed_mutex", glAcquireKeyedMutexWin32EXT }, { "glActiveProgramEXT", "GL_EXT_separate_shader_objects", glActiveProgramEXT }, @@ -21358,6 +21365,7 @@ const OpenGL_extension extension_registry[2679] = { { "wglQueryRendererStringWINE", "WGL_WINE_query_renderer", wglQueryRendererStringWINE }, { "wglReleasePbufferDCARB", "WGL_ARB_pbuffer", wglReleasePbufferDCARB }, { "wglReleaseTexImageARB", "WGL_ARB_render_texture", wglReleaseTexImageARB }, + { "wglSetFullscreenExclusiveWINE", "WGL_WINE_fullscreen_exclusive", wglSetFullscreenExclusiveWINE }, { "wglSetPbufferAttribARB", "WGL_ARB_render_texture", wglSetPbufferAttribARB }, { "wglSetPixelFormatWINE", "WGL_WINE_pixel_format_passthrough", wglSetPixelFormatWINE }, { "wglSwapIntervalEXT", "WGL_EXT_swap_control", wglSwapIntervalEXT } diff --git a/dlls/opengl32/opengl_norm.c b/dlls/opengl32/opengl_norm.c index 137333ce2d3..592da895df8 100644 --- a/dlls/opengl32/opengl_norm.c +++ b/dlls/opengl32/opengl_norm.c @@ -5368,6 +5368,7 @@ static BOOL null_wglQueryRendererIntegerWINE( HDC dc, GLint renderer, GLenum att static const GLchar * null_wglQueryRendererStringWINE( HDC dc, GLint renderer, GLenum attribute ) { return 0; } static int null_wglReleasePbufferDCARB( struct wgl_pbuffer * hPbuffer, HDC hDC ) { return 0; } static BOOL null_wglReleaseTexImageARB( struct wgl_pbuffer * hPbuffer, int iBuffer ) { return 0; } +static BOOL null_wglSetFullscreenExclusiveWINE( HWND hwnd, int fullscreen_exclusive ) { return 0; } static BOOL null_wglSetPbufferAttribARB( struct wgl_pbuffer * hPbuffer, const int *piAttribList ) { return 0; } static BOOL null_wglSetPixelFormatWINE( HDC hdc, int format ) { return 0; } static BOOL null_wglSwapIntervalEXT( int interval ) { return 0; } @@ -8401,6 +8402,7 @@ struct opengl_funcs null_opengl_funcs = null_wglQueryRendererStringWINE, null_wglReleasePbufferDCARB, null_wglReleaseTexImageARB, + null_wglSetFullscreenExclusiveWINE, null_wglSetPbufferAttribARB, null_wglSetPixelFormatWINE, null_wglSwapIntervalEXT, diff --git a/include/wine/wgl_driver.h b/include/wine/wgl_driver.h index d8600c2bf84..8f87328f0b6 100644 --- a/include/wine/wgl_driver.h +++ b/include/wine/wgl_driver.h @@ -3046,6 +3046,7 @@ struct opengl_funcs const GLchar * (WINE_GLAPI *p_wglQueryRendererStringWINE)( HDC dc, GLint renderer, GLenum attribute ); int (WINE_GLAPI *p_wglReleasePbufferDCARB)( struct wgl_pbuffer * hPbuffer, HDC hDC ); BOOL (WINE_GLAPI *p_wglReleaseTexImageARB)( struct wgl_pbuffer * hPbuffer, int iBuffer ); + BOOL (WINE_GLAPI *p_wglSetFullscreenExclusiveWINE)( HWND hwnd, int fullscreen_exclusive ); BOOL (WINE_GLAPI *p_wglSetPbufferAttribARB)( struct wgl_pbuffer * hPbuffer, const int *piAttribList ); BOOL (WINE_GLAPI *p_wglSetPixelFormatWINE)( HDC hdc, int format ); BOOL (WINE_GLAPI *p_wglSwapIntervalEXT)( int interval );