Merge branch 'fix-wgl-leak-backport-to-gtk-4-12' into 'gtk-4-12'

GdkWin32: Do not create multiple WGL contexts for the dummy window [4.12]

See merge request GNOME/gtk!6697
This commit is contained in:
Matthias Clasen
2024-01-18 03:06:35 +00:00

View File

@@ -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))