diff --git a/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp b/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp index a0bd1eae2..4f3edd175 100644 --- a/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp +++ b/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp @@ -645,11 +645,11 @@ bool CIrrDeviceLinux::createWindow() GLX_SAMPLE_BUFFERS_SGIS, 1, GLX_SAMPLES_SGIS, CreationParams.AntiAlias, // 18,19 #endif -//#ifdef GL_ARB_framebuffer_sRGB -// GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB, CreationParams.HandleSRGB, -//#elif defined(GL_EXT_framebuffer_sRGB) -// GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT, CreationParams.HandleSRGB, -//#endif +#ifdef GLX_ARB_framebuffer_sRGB + GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB, CreationParams.HandleSRGB, +#elif defined(GLX_EXT_framebuffer_sRGB) + GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT, CreationParams.HandleSRGB, +#endif GLX_STEREO, CreationParams.Stereobuffer?True:False, None }; @@ -796,11 +796,11 @@ bool CIrrDeviceLinux::createWindow() // GLX_USE_GL, which is silently ignored by glXChooseVisual CreationParams.Doublebuffer?GLX_DOUBLEBUFFER:GLX_USE_GL, // 14 CreationParams.Stereobuffer?GLX_STEREO:GLX_USE_GL, // 15 -//#ifdef GL_ARB_framebuffer_sRGB -// CreationParams.HandleSRGB?GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB:GLX_USE_GL, -//#elif defined(GL_EXT_framebuffer_sRGB) -// CreationParams.HandleSRGB?GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT:GLX_USE_GL, -//#endif +#ifdef GLX_ARB_framebuffer_sRGB + CreationParams.HandleSRGB?GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB:GLX_USE_GL, +#elif defined(GLX_EXT_framebuffer_sRGB) + CreationParams.HandleSRGB?GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT:GLX_USE_GL, +#endif None }; diff --git a/src/graphics/irr_driver.cpp b/src/graphics/irr_driver.cpp index e9f810d97..3e5b0c140 100644 --- a/src/graphics/irr_driver.cpp +++ b/src/graphics/irr_driver.cpp @@ -449,6 +449,7 @@ void IrrDriver::initDevice() params.WindowSize = core::dimension2du(UserConfigParams::m_width, UserConfigParams::m_height); + params.HandleSRGB = true; /* switch ((int)UserConfigParams::m_antialiasing)