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.
This commit is contained in:
Vadim Zeitlin 2023-01-07 16:46:59 +01:00
parent 3c782927c4
commit 2d37e9fbc8

View file

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