Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2020-11-03 18:39:27 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-11-03 18:39:27 +0300
commit5deb2d42d957a0992cf5285ddc988e06c3990009 (patch)
tree5759ddea76181c53e84a6cdc5574e1bcceb90785 /source/blender/gpu
parent6fdcca8de64cd70f237640b67ce2d0068b918d05 (diff)
parent0cf46631e11a819aceece60e3b23491d22e9d077 (diff)
Merge branch 'blender-v2.91-release'
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/opengl/gl_framebuffer.cc2
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 {