File tree Expand file tree Collapse file tree
jme3-core/src/main/java/com/jme3/renderer/opengl Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments