GLRenderer: fix srgb warning logging

Only complain about missing sRGB support if the user wants to enable it, not disable it.
This commit is contained in:
Kirill Vainer 2015-05-08 11:09:20 -04:00
parent ec7432c90c
commit 31fc1d9ac6

View File

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