Commit 250478a9 authored by hybrid's avatar hybrid

Avoid the XVisual method when using OpenGL, because it selects improper...

Avoid the XVisual method when using OpenGL, because it selects improper visuals. Better signal a fail in order for the user to try other properties.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2089 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 0cb7f450
......@@ -468,11 +468,12 @@ bool CIrrDeviceLinux::createWindow()
else
os::Printer::log("No GLX support available. OpenGL driver will not work.", ELL_WARNING);
}
// don't use the XVisual with OpenGL, because it ignores all requested
// properties of the CreationParams
else if (!visual)
#endif // _IRR_COMPILE_WITH_OPENGL_
// create visual with standard X methods
if (!visual)
{
XVisualInfo visTempl; //Template to hold requested values
int visNumber; // Return value of available visuals
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment