Assume that "HandleSRGB == false" means "don't care".

It solves the issue with nvidia when HandleSRGB is set to false.
This commit is contained in:
Deve 2017-12-25 23:59:49 +01:00
parent c35599f3e2
commit 87d43063ed

View File

@ -694,6 +694,12 @@ bool CIrrDeviceLinux::createWindow()
visualAttrBuffer[17] = 0;
visualAttrBuffer[19] = 0;
}
if (CreationParams.HandleSRGB == false)
{
visualAttrBuffer[21] = GLX_DONT_CARE;
}
// first round with unchanged values
{
configList=glxChooseFBConfig(display, screennr, visualAttrBuffer,&nitems);