From 2d37e9fbc86254e20d6fd65c7461e6ff53e8bf1a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 7 Jan 2023 16:46:59 +0100 Subject: [PATCH] Disable WS_EX_COMPOSITED for wxGLCanvas and its parent windows OpenGL window can't be used inside a composited window as its contents is never drawn at all with some video cards/drivers in this case (at least nVidia ones). Closes #23112. --- src/msw/glcanvas.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/msw/glcanvas.cpp b/src/msw/glcanvas.cpp index 0f419543c6..47c9acd9e8 100644 --- a/src/msw/glcanvas.cpp +++ b/src/msw/glcanvas.cpp @@ -753,6 +753,8 @@ bool wxGLCanvas::Create(wxWindow *parent, if ( !CreateWindow(parent, id, pos, size, style, name) ) return false; + MSWDisableComposited(); + // Choose a matching pixel format. // Need a PIXELFORMATDESCRIPTOR for SetPixelFormat() PIXELFORMATDESCRIPTOR pfd;