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.
This commit is contained in:
Clément Foucault 2020-10-23 03:32:51 +02:00
parent 3cc2dc40b3
commit 36e8561298
Notes: blender-bot 2023-02-14 08:47:25 +01:00
Referenced by issue #81969, UI turns whiteish when playing video sequence based on a scene and moving in the image editor after saving
1 changed files with 2 additions and 1 deletions

View File

@ -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);