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:
parent
ec7432c90c
commit
31fc1d9ac6
@ -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.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user