Skip to content

Commit

Permalink
Assume that "HandleSRGB == false" means "don't care".
Browse files Browse the repository at this point in the history
It solves the issue with nvidia when HandleSRGB is set to false.
  • Loading branch information
deveee committed Dec 25, 2017
1 parent c35599f commit 87d4306
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 87d4306

Please sign in to comment.