In LWJGL, is it possible to create SRGB framebuffers?
Yes. You need to check for the GL_ARB_framebuffer_sRGB extension and use new PixelFormat(...).withSRGB(true).
Thank you for the response, i've already tried withSRGB(true) but it seems not work. I have now checked the extension and its value is true, so i have the requisites...I'll re-check my code, if i don't find what is wrong i'll write here!
Quote from: spasi on February 25, 2012, 22:54:59
Yes. You need to check for the GL_ARB_framebuffer_sRGB extension and use new PixelFormat(...).withSRGB(true).
is PixelFormat().withSRGB(true) equals to this in FreeGLUT?
unsigned int defaults(unsigned int displayMode, int &width, int &height)
{
return displayMode | GLUT_SRGB;
}
Reference (http://web.archive.org/web/20140131102945/http://www.arcsynthesis.org/gltut/Texturing/Tut16%20Free%20Gamma%20Correction.html)
Looks like it, yes.