diff --git a/src/StdGLCtx.cpp b/src/StdGLCtx.cpp index 922c32df..655d7c31 100644 --- a/src/StdGLCtx.cpp +++ b/src/StdGLCtx.cpp @@ -225,10 +225,7 @@ bool CStdGL::SaveDefaultGammaRampToMonitor(CStdWindow *pWindow) bool CStdGL::ApplyGammaRampToMonitor(CGammaControl &ramp, bool fForce) { if (!MainCtx.hDC || (!Active && !fForce)) return false; - if (!SetDeviceGammaRamp(MainCtx.hDC, ramp.red)) - { - logger->error("Error setting gamma ramp: {:02x}", ::GetLastError()); - } + SetDeviceGammaRamp(MainCtx.hDC, ramp.red); return true; }