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:
authorClément Foucault <foucault.clem@gmail.com>2020-10-14 19:15:50 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-10-14 19:53:41 +0300
commit327107412032d075c63427d86e5154a5e37b8d4a (patch)
tree30d5f868cbe2a1abfb8acf57ec89ab6fe0681581 /source/blender/gpu/opengl/gl_framebuffer.hh
parent4fa4245464380cd72603377150d17f71ef3b4ab6 (diff)
GL: FrameBuffer: Set GL_FRAMEBUFFER_SRGB if needed
This makes possible to rebind the same GPUFrameBuffer to enable or disable sRGB encoding transform.
Diffstat (limited to 'source/blender/gpu/opengl/gl_framebuffer.hh')
-rw-r--r--source/blender/gpu/opengl/gl_framebuffer.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/opengl/gl_framebuffer.hh b/source/blender/gpu/opengl/gl_framebuffer.hh
index 755f3f97567..33c1cd0befa 100644
--- a/source/blender/gpu/opengl/gl_framebuffer.hh
+++ b/source/blender/gpu/opengl/gl_framebuffer.hh
@@ -55,6 +55,8 @@ class GLFrameBuffer : public FrameBuffer {
bool immutable_;
/** True is the framebuffer has it's first color target using the GPU_SRGB8_A8 format. */
bool srgb_;
+ /** True is the framebuffer has been bound using the GL_FRAMEBUFFER_SRGB feature. */
+ bool enabled_srgb_ = false;
public:
/**