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-04-16 00:34:19 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-04-16 00:34:19 +0300
commitf0221ff6674f0848fb973667aed0e9c299219304 (patch)
tree10929ddfae94270617002e0db4c7b740dfb48841 /source/blender/editors/space_image
parente0d7b6c78d4f2481b5ca2382a1dea61d1d96e856 (diff)
Fix T75750 Image Editor: Rendered result is much brighter than in viewport
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r--source/blender/editors/space_image/space_image.c5
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);