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:
parent
3c782927c4
commit
2d37e9fbc8
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue