Try to create 32bit visual for gles if 24bit failed.

People need it for Odroid boards.
This commit is contained in:
Deve 2018-02-02 22:15:31 +01:00
parent a2052b77b9
commit 48cde3e041

View File

@ -920,6 +920,13 @@ bool CIrrDeviceLinux::createWindow()
&visTempl, &visNumber);
visTempl.depth -= 8;
}
if (!visual && !CreationParams.WithAlphaChannel)
{
visTempl.depth = 32;
visual = XGetVisualInfo(display, VisualScreenMask|VisualDepthMask,
&visTempl, &visNumber);
}
}
if (!visual)