From: Rémi Bernon <rbernon(a)codeweavers.com> --- dlls/opengl32/unix_wgl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/opengl32/unix_wgl.c b/dlls/opengl32/unix_wgl.c index 4771205a47e..75f879de93f 100644 --- a/dlls/opengl32/unix_wgl.c +++ b/dlls/opengl32/unix_wgl.c @@ -140,6 +140,8 @@ static HGLRC wrap_wglCreateContext( HDC hdc ) return ret; } +static BOOL wrap_wglMakeCurrent( HDC hdc, HGLRC hglrc ); + static BOOL wrap_wglDeleteContext( HGLRC hglrc ) { struct wgl_handle *ptr = get_handle_ptr( hglrc, HANDLE_CONTEXT ); @@ -152,7 +154,7 @@ static BOOL wrap_wglDeleteContext( HGLRC hglrc ) release_handle_ptr( ptr ); return FALSE; } - if (hglrc == NtCurrentTeb()->glCurrentRC) wglMakeCurrent( 0, 0 ); + if (hglrc == NtCurrentTeb()->glCurrentRC) wrap_wglMakeCurrent( 0, 0 ); ptr->funcs->wgl.p_wglDeleteContext( ptr->u.context->drv_ctx ); HeapFree( GetProcessHeap(), 0, ptr->u.context->disabled_exts ); HeapFree( GetProcessHeap(), 0, ptr->u.context->extensions ); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/1275