File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
jme3-core/src/main/java/com/jme3/renderer/opengl Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -550,7 +550,9 @@ private void loadCapabilitiesCommon() {
550550 }
551551
552552 // Supports sRGB pipeline.
553- if ( (hasExtension ("GL_ARB_framebuffer_sRGB" ) && hasExtension ("GL_EXT_texture_sRGB" ))
553+ if ( (hasExtension ("GL_ARB_framebuffer_sRGB" )
554+ && hasExtension ("GL_EXT_framebuffer_sRGB" )
555+ && hasExtension ("GL_EXT_texture_sRGB" ))
554556 || caps .contains (Caps .OpenGL30 ) || caps .contains (Caps .OpenGLES30 )) {
555557 caps .add (Caps .Srgb );
556558 }
@@ -3490,6 +3492,12 @@ public void setMainFrameBufferSrgb(boolean enableSrgb) {
34903492 setFrameBuffer (null );
34913493
34923494 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+ // }
34933501 gl .glEnable (GLExt .GL_FRAMEBUFFER_SRGB_EXT );
34943502 logger .log (Level .INFO , "SRGB FrameBuffer enabled (Gamma Correction)" );
34953503 } else {
You can’t perform that action at this time.
0 commit comments