From: Rémi Bernon <rbernon@codeweavers.com> --- dlls/opengl32/unix_wgl.c | 1 + dlls/opengl32/wgl.c | 3 +++ include/wine/opengl_driver.h | 1 + 3 files changed, 5 insertions(+) diff --git a/dlls/opengl32/unix_wgl.c b/dlls/opengl32/unix_wgl.c index 762c31578d8..fbf5654aeaa 100644 --- a/dlls/opengl32/unix_wgl.c +++ b/dlls/opengl32/unix_wgl.c @@ -1083,6 +1083,7 @@ static void make_context_current( TEB *teb, const struct opengl_funcs *funcs, HD TRACE( "context %p version %d.%d\n", ctx, client->major_version, client->minor_version ); funcs->p_init_extensions( client->extensions ); + funcs->p_glGetIntegerv( GL_CONTEXT_PROFILE_MASK, &client->profile_mask ); if (client->major_version >= 3) { diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c index 82387aa118f..e698a384c99 100644 --- a/dlls/opengl32/wgl.c +++ b/dlls/opengl32/wgl.c @@ -2110,6 +2110,9 @@ BOOL get_integer( GLenum name, GLint *data ) switch (name) { + case GL_CONTEXT_PROFILE_MASK: + *data = ctx->base.profile_mask; + return TRUE; case GL_MAJOR_VERSION: *data = ctx->base.major_version; return TRUE; diff --git a/include/wine/opengl_driver.h b/include/wine/opengl_driver.h index e70c00151a9..af745e038a6 100644 --- a/include/wine/opengl_driver.h +++ b/include/wine/opengl_driver.h @@ -75,6 +75,7 @@ struct opengl_client_context UINT64 unix_funcs; DWORD current_tid; /* thread that the context is current in */ GLenum last_error; + GLint profile_mask; int major_version; int minor_version; BOOLEAN extensions[GL_EXTENSION_COUNT]; /* exposed client extensions */ -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10870