Skip to content

Commit 0d2b48e

Browse files
authored
Update GLRenderer.java
1 parent b3a7fe0 commit 0d2b48e

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -550,9 +550,7 @@ private void loadCapabilitiesCommon() {
550550
}
551551

552552
// Supports sRGB pipeline.
553-
if ( (hasExtension("GL_ARB_framebuffer_sRGB")
554-
&& hasExtension("GL_EXT_framebuffer_sRGB")
555-
&& hasExtension("GL_EXT_texture_sRGB"))
553+
if ( (hasExtension("GL_ARB_framebuffer_sRGB") && hasExtension("GL_EXT_texture_sRGB"))
556554
|| caps.contains(Caps.OpenGL30) || caps.contains(Caps.OpenGLES30)) {
557555
caps.add(Caps.Srgb);
558556
}
@@ -3492,12 +3490,6 @@ public void setMainFrameBufferSrgb(boolean enableSrgb) {
34923490
setFrameBuffer(null);
34933491

34943492
if (enableSrgb) {
3495-
if (!hasExtension("GL_EXT_framebuffer_sRGB")) {
3496-
logger.warning("Driver claims that default framebuffer is not sRGB capable. Enabling anyway.");
3497-
}
3498-
// if (!getBoolean(GLExt.GL_FRAMEBUFFER_SRGB_CAPABLE_EXT)) {
3499-
// logger.warning("Driver claims that default framebuffer is not sRGB capable. Enabling anyway.");
3500-
// }
35013493
gl.glEnable(GLExt.GL_FRAMEBUFFER_SRGB_EXT);
35023494
logger.log(Level.INFO, "SRGB FrameBuffer enabled (Gamma Correction)");
35033495
} else {

0 commit comments

Comments
 (0)