diff options
author | Jeroen Bakker <jbakker> | 2020-03-19 10:06:49 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-03-19 10:26:48 +0300 |
commit | fd48ff1296f45b32bffeca2c60dca2a12bb84229 (patch) | |
tree | 250137802d4bed0628a7926df724227349320757 /source/blender/gpu/intern/gpu_framebuffer.c | |
parent | fe045b2b77dc6d7f0b552619fe824b496d34db6c (diff) |
Fix T73931: Stereo Viewport Color Management
Stereoscopic viewport didn't support Color Manangement due recent
changes in the color management pipeline. In order to solve the issue we
will migrate the strereo rendering into the GPUViewport. This will share
some textures and reduce required GPU memory.
Reviewed By: fclem, dfelinto
Differential Revision: https://developer.blender.org/D6922
Diffstat (limited to 'source/blender/gpu/intern/gpu_framebuffer.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_framebuffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_framebuffer.c b/source/blender/gpu/intern/gpu_framebuffer.c index 6197d5f99b8..f254cce25e4 100644 --- a/source/blender/gpu/intern/gpu_framebuffer.c +++ b/source/blender/gpu/intern/gpu_framebuffer.c @@ -943,6 +943,7 @@ void GPU_offscreen_bind(GPUOffScreen *ofs, bool save) glDisable(GL_SCISSOR_TEST); GPUFrameBuffer *ofs_fb = gpu_offscreen_fb_get(ofs); GPU_framebuffer_bind(ofs_fb); + glDisable(GL_FRAMEBUFFER_SRGB); } void GPU_offscreen_unbind(GPUOffScreen *UNUSED(ofs), bool restore) |