diff --git a/doc/changelog.dox b/doc/changelog.dox index 149953b3b..deca4362c 100644 --- a/doc/changelog.dox +++ b/doc/changelog.dox @@ -340,6 +340,8 @@ See also: - @ref Platform::GlfwApplication::exec() now asserts instead of crashing if the constructor fails to create a window (see [mosra/magnum#192](https://github.com/mosra/magnum/issues/192), [mosra/magnum#272](https://github.com/mosra/magnum/pull/272)) +- @ref Platform::GlfwApplication::GLConfiguration::isSrgbCapable() has now + a proper documented default value instead of being left uninitialized. - @ref Math::sclerp() was not properly interpolating the translation if rotation was the same on both sides diff --git a/src/Magnum/Platform/GlfwApplication.cpp b/src/Magnum/Platform/GlfwApplication.cpp index ab70fb3b1..ca3e57fb6 100644 --- a/src/Magnum/Platform/GlfwApplication.cpp +++ b/src/Magnum/Platform/GlfwApplication.cpp @@ -621,7 +621,7 @@ void GlfwApplication::textInputEvent(TextInputEvent&) {} #ifdef MAGNUM_TARGET_GL GlfwApplication::GLConfiguration::GLConfiguration(): _colorBufferSize{8, 8, 8, 0}, _depthBufferSize{24}, _stencilBufferSize{0}, - _sampleCount{0}, _version{GL::Version::None} {} + _sampleCount{0}, _version{GL::Version::None}, _srgbCapable{false} {} GlfwApplication::GLConfiguration::~GLConfiguration() = default; #endif @@ -633,7 +633,7 @@ GlfwApplication::Configuration::Configuration(): _dpiScalingPolicy{DpiScalingPolicy::Default}, _cursorMode{CursorMode::Normal} #if defined(MAGNUM_BUILD_DEPRECATED) && defined(MAGNUM_TARGET_GL) - , _sampleCount{0}, _version{GL::Version::None} + , _sampleCount{0}, _version{GL::Version::None}, _srgbCapable{false} #endif {} diff --git a/src/Magnum/Platform/GlfwApplication.h b/src/Magnum/Platform/GlfwApplication.h index 1f3a230a0..b1ad234ed 100644 --- a/src/Magnum/Platform/GlfwApplication.h +++ b/src/Magnum/Platform/GlfwApplication.h @@ -705,6 +705,9 @@ class GlfwApplication::GLConfiguration { /** * @brief Set sRGB-capable default framebuffer + * + * Default is @cpp false @ce. See also + * @ref GL::Renderer::Feature::FramebufferSrgb. * @return Reference to self (for method chaining) */ GLConfiguration& setSrgbCapable(bool enabled) {