From 0345e8077008a78b2f0f6217c054ac85917a917e Mon Sep 17 00:00:00 2001 From: Luca Bacci Date: Fri, 22 Dec 2023 12:51:56 +0100 Subject: [PATCH] GdkWin32: Do not create multiple WGL contexts for the dummy window Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/6285 --- gdk/win32/gdkglcontext-win32-wgl.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gdk/win32/gdkglcontext-win32-wgl.c b/gdk/win32/gdkglcontext-win32-wgl.c index d5f8ce56b1..da225006e1 100644 --- a/gdk/win32/gdkglcontext-win32-wgl.c +++ b/gdk/win32/gdkglcontext-win32-wgl.c @@ -126,9 +126,6 @@ gdk_win32_gl_context_wgl_begin_frame (GdkDrawContext *draw_context, GDK_DRAW_CONTEXT_CLASS (gdk_win32_gl_context_wgl_parent_class)->begin_frame (draw_context, depth, update_area); } -static int -gdk_init_dummy_wgl_context (GdkWin32Display *display_win32); - #define PIXEL_ATTRIBUTES 17 static int @@ -178,7 +175,6 @@ get_wgl_pfd (HDC hdc, pixelAttribs[i++] = 0; /* end of pixelAttribs */ g_assert (i <= PIXEL_ATTRIBUTES); - best_pf = gdk_init_dummy_wgl_context (display_win32); if (!wglMakeCurrent (display_win32->dummy_context_wgl.hdc, display_win32->dummy_context_wgl.hglrc))