[Bf-blender-cvs] [36e8561298c] blender-v2.91-release: Fix T81969 VSE: Wrong UI colorspace after scene strip update

Clément Foucault noreply at git.blender.org
Fri Oct 23 03:37:11 CEST 2020


Commit: 36e8561298cb7f7abb963c11645739ab364027cb
Author: Clément Foucault
Date:   Fri Oct 23 03:32:51 2020 +0200
Branches: blender-v2.91-release
https://developer.blender.org/rB36e8561298cb7f7abb963c11645739ab364027cb

Fix T81969 VSE: Wrong UI colorspace after scene strip update

This regression was caused by rB57de5686048f which disabled srgb
transform after the python callback.

The right thing to do is to only rebind the framebuffer once to
reset the no-srgb override.

===================================================================

M	source/blender/editors/screen/area.c

===================================================================

diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 9dbdb37ef27..f5962f36412 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -550,10 +550,11 @@ void ED_region_do_draw(bContext *C, ARegion *region)
    * for drawing of borders/gestures etc */
   ED_region_pixelspace(region);
 
+  /* Remove sRGB override by rebinding the framebuffer. */
   GPUFrameBuffer *fb = GPU_framebuffer_active_get();
   GPU_framebuffer_bind(fb);
+
   ED_region_draw_cb_draw(C, region, REGION_DRAW_POST_PIXEL);
-  GPU_framebuffer_bind_no_srgb(fb);
 
   region_draw_azones(area, region);



More information about the Bf-blender-cvs mailing list