From 6df8be39ec7117deb5899b16ae3a2c215fd249ba Mon Sep 17 00:00:00 2001 From: Ben Anderson Date: Sun, 13 Mar 2005 22:54:50 +0000 Subject: [PATCH] Play nice with RageDisplay_OGL GLX hacks --- stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp index 475c26304a..adf363e97a 100644 --- a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp +++ b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_X11.cpp @@ -9,9 +9,16 @@ #define GLX_GLXEXT_PROTOTYPES #include // All sorts of stuff... +// XXX HACK: RageDisplay_OGL is expecting us to set this for it so it can do +// GLX-specific queries and whatnot. It's one ugly hackish mess, but hey, +// LLW_SDL is in on it, and I'm feeling lazy. +extern Display *g_X11Display; + LowLevelWindow_X11::LowLevelWindow_X11() { + g_X11Display = NULL; if(!X11Helper::Go() ) { RageException::Throw("Failed to establish a connection with the X server."); } + g_X11Display = X11Helper::Dpy(); LOG->Trace("LowLevelWindow_X11 init"); }