Try to create 32bit visual for gles if 24bit failed.
People need it for Odroid boards.
This commit is contained in:
parent
a2052b77b9
commit
48cde3e041
@ -920,6 +920,13 @@ bool CIrrDeviceLinux::createWindow()
|
|||||||
&visTempl, &visNumber);
|
&visTempl, &visNumber);
|
||||||
visTempl.depth -= 8;
|
visTempl.depth -= 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!visual && !CreationParams.WithAlphaChannel)
|
||||||
|
{
|
||||||
|
visTempl.depth = 32;
|
||||||
|
visual = XGetVisualInfo(display, VisualScreenMask|VisualDepthMask,
|
||||||
|
&visTempl, &visNumber);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!visual)
|
if (!visual)
|
||||||
|
Loading…
Reference in New Issue
Block a user