Commit 1f1df157 authored by cutealien's avatar cutealien

glxChooseFBConfig needs pair parameters, I think GLX_FRAMEBUFFER_SRGB...

glxChooseFBConfig needs pair parameters, I think GLX_FRAMEBUFFER_SRGB initialization was probably meant to be as in this change (crashs otherwise).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3756 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 49be1f91
......@@ -412,9 +412,9 @@ bool CIrrDeviceLinux::createWindow()
GLX_SAMPLES_SGIS, CreationParams.AntiAlias, // 18,19
#endif
#ifdef GL_ARB_framebuffer_sRGB
CreationParams.HandleSRGB?GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB:GLX_USE_GL,
GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB, CreationParams.HandleSRGB,
#elif defined(GL_EXT_framebuffer_sRGB)
CreationParams.HandleSRGB?GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT:GLX_USE_GL,
GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT, CreationParams.HandleSRGB,
#endif
GLX_STEREO, CreationParams.Stereobuffer?True:False,
None
......
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