I'm such an idiot, I forgot to map the window! Also, slight reordering to make things theoretically more efficient.
This commit is contained in:
@@ -74,6 +74,10 @@ CString LowLevelWindow_X11::TryVideoMode(RageDisplay::VideoModeParams p, bool &b
|
|||||||
|
|
||||||
ctxt = glXCreateContext(X11Helper::Dpy(), xvi, NULL, True);
|
ctxt = glXCreateContext(X11Helper::Dpy(), xvi, NULL, True);
|
||||||
|
|
||||||
|
glXMakeCurrent(X11Helper::Dpy(), X11Helper::Win(), ctxt);
|
||||||
|
|
||||||
|
XMapWindow(X11Helper::Dpy(), X11Helper::Win() );
|
||||||
|
|
||||||
// HACK: Wait for the MapNotify event, without spinning and
|
// HACK: Wait for the MapNotify event, without spinning and
|
||||||
// eating CPU unnecessarily, and without smothering other
|
// eating CPU unnecessarily, and without smothering other
|
||||||
// events. Do this by grabbing all events, remembering
|
// events. Do this by grabbing all events, remembering
|
||||||
@@ -94,8 +98,6 @@ CString LowLevelWindow_X11::TryVideoMode(RageDisplay::VideoModeParams p, bool &b
|
|||||||
|
|
||||||
X11Helper::CloseMask(StructureNotifyMask);
|
X11Helper::CloseMask(StructureNotifyMask);
|
||||||
|
|
||||||
glXMakeCurrent(X11Helper::Dpy(), X11Helper::Win(), ctxt);
|
|
||||||
|
|
||||||
windowIsOpen = true;
|
windowIsOpen = true;
|
||||||
} else { bNewDeviceOut = false; }
|
} else { bNewDeviceOut = false; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user