Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-10-23 04:32:51 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-10-23 04:32:51 +0300
commit36e8561298cb7f7abb963c11645739ab364027cb (patch)
tree58b3f94e1a5da209227c6e07fff9d35038187c26 /source/blender/editors/screen/area.c
parent3cc2dc40b314324355394be202c38a20b931dac7 (diff)
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.
Diffstat (limited to 'source/blender/editors/screen/area.c')
-rw-r--r--source/blender/editors/screen/area.c3
1 files changed, 2 insertions, 1 deletions
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);