diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-04-16 00:34:19 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-04-16 00:34:19 +0300 |
commit | f0221ff6674f0848fb973667aed0e9c299219304 (patch) | |
tree | 10929ddfae94270617002e0db4c7b740dfb48841 /source | |
parent | e0d7b6c78d4f2481b5ca2382a1dea61d1d96e856 (diff) |
Fix T75750 Image Editor: Rendered result is much brighter than in viewport
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_image/space_image.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c index 1e1d4373fea..5c146a99efd 100644 --- a/source/blender/editors/space_image/space_image.c +++ b/source/blender/editors/space_image/space_image.c @@ -669,9 +669,14 @@ static void image_main_region_draw(const bContext *C, ARegion *region) /* we set view2d from own zoom and offset each time */ image_main_region_set_view2d(sima, region); + /* Image are still drawn in display space. */ + glDisable(GL_FRAMEBUFFER_SRGB); + /* we draw image in pixelspace */ draw_image_main(C, region); + glEnable(GL_FRAMEBUFFER_SRGB); + /* and uvs in 0.0-1.0 space */ UI_view2d_view_ortho(v2d); |