Disabl sRGB framebuffer on irrlicht side to avoid modifying current user interface colors
This commit is contained in:
parent
0216fd9697
commit
b91bcaf554
@ -805,13 +805,13 @@ bool COpenGLDriver::genericDriverInit()
|
|||||||
|
|
||||||
Params.HandleSRGB &= ((FeatureAvailable[IRR_ARB_framebuffer_sRGB] || FeatureAvailable[IRR_EXT_framebuffer_sRGB]) &&
|
Params.HandleSRGB &= ((FeatureAvailable[IRR_ARB_framebuffer_sRGB] || FeatureAvailable[IRR_EXT_framebuffer_sRGB]) &&
|
||||||
FeatureAvailable[IRR_EXT_texture_sRGB]);
|
FeatureAvailable[IRR_EXT_texture_sRGB]);
|
||||||
#if defined(GL_ARB_framebuffer_sRGB)
|
//#if defined(GL_ARB_framebuffer_sRGB)
|
||||||
if (Params.HandleSRGB)
|
// if (Params.HandleSRGB)
|
||||||
glEnable(GL_FRAMEBUFFER_SRGB);
|
// glEnable(GL_FRAMEBUFFER_SRGB);
|
||||||
#elif defined(GL_EXT_framebuffer_sRGB)
|
//#elif defined(GL_EXT_framebuffer_sRGB)
|
||||||
if (Params.HandleSRGB)
|
// if (Params.HandleSRGB)
|
||||||
glEnable(GL_FRAMEBUFFER_SRGB_EXT);
|
// glEnable(GL_FRAMEBUFFER_SRGB_EXT);
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
// This is a fast replacement for NORMALIZE_NORMALS
|
// This is a fast replacement for NORMALIZE_NORMALS
|
||||||
// if ((Version>101) || FeatureAvailable[IRR_EXT_rescale_normal])
|
// if ((Version>101) || FeatureAvailable[IRR_EXT_rescale_normal])
|
||||||
|
@ -274,15 +274,15 @@ GLint COpenGLTexture::getOpenGLFormatAndParametersFromColorFormat(ECOLOR_FORMAT
|
|||||||
internalformat = GL_RGBA8;
|
internalformat = GL_RGBA8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if defined(GL_ARB_framebuffer_sRGB) || defined(GL_EXT_framebuffer_sRGB)
|
//#if defined(GL_ARB_framebuffer_sRGB) || defined(GL_EXT_framebuffer_sRGB)
|
||||||
if (Driver->Params.HandleSRGB)
|
// if (Driver->Params.HandleSRGB)
|
||||||
{
|
// {
|
||||||
if (internalformat==GL_RGBA)
|
// if (internalformat==GL_RGBA)
|
||||||
internalformat=GL_SRGB_ALPHA_EXT;
|
// internalformat=GL_SRGB_ALPHA_EXT;
|
||||||
else if (internalformat==GL_RGB)
|
// else if (internalformat==GL_RGB)
|
||||||
internalformat=GL_SRGB_EXT;
|
// internalformat=GL_SRGB_EXT;
|
||||||
}
|
// }
|
||||||
#endif
|
//#endif
|
||||||
return internalformat;
|
return internalformat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user