diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-10-14 19:15:50 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-10-14 19:53:41 +0300 |
commit | 327107412032d075c63427d86e5154a5e37b8d4a (patch) | |
tree | 30d5f868cbe2a1abfb8acf57ec89ab6fe0681581 /source/blender/gpu/opengl/gl_framebuffer.hh | |
parent | 4fa4245464380cd72603377150d17f71ef3b4ab6 (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.hh | 2 |
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: /** |