diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-11-03 18:39:27 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-11-03 18:39:27 +0300 |
commit | 5deb2d42d957a0992cf5285ddc988e06c3990009 (patch) | |
tree | 5759ddea76181c53e84a6cdc5574e1bcceb90785 /source/blender/gpu/opengl/gl_framebuffer.cc | |
parent | 6fdcca8de64cd70f237640b67ce2d0068b918d05 (diff) | |
parent | 0cf46631e11a819aceece60e3b23491d22e9d077 (diff) |
Merge branch 'blender-v2.91-release'
Diffstat (limited to 'source/blender/gpu/opengl/gl_framebuffer.cc')
-rw-r--r-- | source/blender/gpu/opengl/gl_framebuffer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/opengl/gl_framebuffer.cc b/source/blender/gpu/opengl/gl_framebuffer.cc index cd87fc88144..a180aa270b0 100644 --- a/source/blender/gpu/opengl/gl_framebuffer.cc +++ b/source/blender/gpu/opengl/gl_framebuffer.cc @@ -288,7 +288,7 @@ void GLFrameBuffer::bind(bool enabled_srgb) if (context_->active_fb != this || enabled_srgb_ != enabled_srgb) { enabled_srgb_ = enabled_srgb; - if (enabled_srgb) { + if (enabled_srgb && srgb_) { glEnable(GL_FRAMEBUFFER_SRGB); } else { |