mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 16:49:58 -06:00
GLX: Remove evdpy / dpy split
Move to one display. There's no reason to have two displays here -- the comment stated that one should touch GLX and one should touch window events, and that they should be touched from different threads, but the current code wasn't this careful. Just use one Display connection.
This commit is contained in:
@ -15,7 +15,7 @@ static PFNGLXSWAPINTERVALSGIPROC glXSwapIntervalSGI = nullptr;
|
||||
// Show the current FPS
|
||||
void cInterfaceGLX::UpdateFPSDisplay(const std::string& text)
|
||||
{
|
||||
XStoreName(GLWin.evdpy, GLWin.win, text.c_str());
|
||||
XStoreName(GLWin.dpy, GLWin.win, text.c_str());
|
||||
}
|
||||
|
||||
void cInterfaceGLX::SwapInterval(int Interval)
|
||||
@ -65,7 +65,6 @@ bool cInterfaceGLX::Create(void *&window_handle)
|
||||
None };
|
||||
|
||||
GLWin.dpy = XOpenDisplay(nullptr);
|
||||
GLWin.evdpy = XOpenDisplay(nullptr);
|
||||
GLWin.parent = (Window)window_handle;
|
||||
GLWin.screen = DefaultScreen(GLWin.dpy);
|
||||
if (GLWin.parent == 0)
|
||||
@ -134,7 +133,6 @@ void cInterfaceGLX::Shutdown()
|
||||
{
|
||||
glXDestroyContext(GLWin.dpy, GLWin.ctx);
|
||||
XCloseDisplay(GLWin.dpy);
|
||||
XCloseDisplay(GLWin.evdpy);
|
||||
GLWin.ctx = nullptr;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user