|
|
@ -2565,10 +2565,21 @@ public class LwjglRenderer implements Renderer { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setFrameBuffer(null); |
|
|
|
|
|
|
|
|
|
|
|
if (enableSrgb) { |
|
|
|
if (enableSrgb) { |
|
|
|
if (!glGetBoolean(GL30.GL_FRAMEBUFFER_SRGB_CAPABLE)) { |
|
|
|
if (!glGetBoolean(GL30.GL_FRAMEBUFFER_SRGB_CAPABLE)) { |
|
|
|
logger.warning("Driver claims that default framebuffer " + |
|
|
|
logger.warning("Driver claims that default framebuffer " |
|
|
|
"is not sRGB capable. Enabling anyway."); |
|
|
|
+ "is not sRGB capable. Enabling anyway."); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int encoding = GL30.glGetFramebufferAttachmentParameteri(GL30.GL_DRAW_FRAMEBUFFER, |
|
|
|
|
|
|
|
GL_FRONT_LEFT, |
|
|
|
|
|
|
|
GL30.GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (encoding != GL21.GL_SRGB) { |
|
|
|
|
|
|
|
logger.warning("Driver claims that default framebuffer " |
|
|
|
|
|
|
|
+ "is not using sRGB color encoding. Enabling anyway."); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
glEnable(GL30.GL_FRAMEBUFFER_SRGB); |
|
|
|
glEnable(GL30.GL_FRAMEBUFFER_SRGB); |
|
|
|