GL: Fix default framebuffers being bound using srgb
Default backbuffers needs not to be bound with sRGB encoding enabled. This works when using `GPU_framebuffer_restore` but using `GPU_framebuffer_bind` would trigger the wrong behavior. This fix T81969 UI turns whiteish when playing video sequence based on a scene and moving in the image editor after saving
This commit is contained in:
parent
3c953a1b09
commit
313086e212
Notes:
blender-bot
2023-02-14 00:37:17 +01:00
Referenced by issue #83415, 3D View is red when using stereo Referenced by issue #81969, UI turns whiteish when playing video sequence based on a scene and moving in the image editor after saving
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue