mirror of https://github.com/PCSX2/pcsx2.git
Crashfix for ZZogl / ZeroGSogl. Thanks "jur".
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2825 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
e28aeacf56
commit
a57761c934
|
@ -107,6 +107,11 @@ void GLWindow::DisplayWindow(int _width, int _height)
|
|||
doubleBuffered = true;
|
||||
ERROR_LOG("Got Doublebuffered Visual!\n");
|
||||
}
|
||||
if (vi == NULL)
|
||||
{
|
||||
ERROR_LOG("Failed to get buffered Visual!\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
glXQueryVersion(glDisplay, &glxMajorVersion, &glxMinorVersion);
|
||||
ERROR_LOG("glX-Version %d.%d\n", glxMajorVersion, glxMinorVersion);
|
||||
|
|
|
@ -111,12 +111,17 @@ bool GLWindow::DisplayWindow(int _width, int _height)
|
|||
doubleBuffered = true;
|
||||
ERROR_LOG("Got Doublebuffered Visual!\n");
|
||||
}
|
||||
if (vi == NULL)
|
||||
{
|
||||
ERROR_LOG("Failed to get buffered Visual!\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
glXQueryVersion(glDisplay, &glxMajorVersion, &glxMinorVersion);
|
||||
ERROR_LOG("glX-Version %d.%d\n", glxMajorVersion, glxMinorVersion);
|
||||
|
||||
/* create a GLX context */
|
||||
context = glXCreateContext(glDisplay, vi, 0, GL_TRUE);
|
||||
context = glXCreateContext(glDisplay, vi, NULL, GL_TRUE);
|
||||
|
||||
/* create a color map */
|
||||
cmap = XCreateColormap(glDisplay, RootWindow(glDisplay, vi->screen),
|
||||
|
|
Loading…
Reference in New Issue