GLRenderer: fix srgb warning logging

Only complain about missing sRGB support if the user wants to enable it, not disable it.
experimental
Kirill Vainer 10 years ago
parent ec7432c90c
commit 31fc1d9ac6
  1. 2
      jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java

@ -2670,7 +2670,7 @@ public class GLRenderer implements Renderer {
public void setMainFrameBufferSrgb(boolean enableSrgb) { public void setMainFrameBufferSrgb(boolean enableSrgb) {
// Gamma correction // Gamma correction
if (!caps.contains(Caps.Srgb)) { if (!caps.contains(Caps.Srgb) && enableSrgb) {
// Not supported, sorry. // Not supported, sorry.
logger.warning("sRGB framebuffer is not supported " + logger.warning("sRGB framebuffer is not supported " +
"by video hardware, but was requested."); "by video hardware, but was requested.");

Loading…
Cancel
Save