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:
authorPhilipp Oeser <info@graphics-engineer.com>2020-04-16 13:39:51 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-04-16 15:04:30 +0300
commit3ea4d3dc07311a5799f7102a1e4f5920db367c0e (patch)
tree724e5d1073632b5ba9d039d8aaa5171d59a70a0d /source/blender/editors/space_image/space_image.c
parent5d9d246851082c785104388399b3766eff7d2228 (diff)
Fix (unreported) Image Editor UI drawing too dark
Caused by rBf0221ff6674f. Only draw the Image buffer itself in display space. Differential Revision: https://developer.blender.org/D7449
Diffstat (limited to 'source/blender/editors/space_image/space_image.c')
-rw-r--r--source/blender/editors/space_image/space_image.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c
index 5c146a99efd..1e1d4373fea 100644
--- a/source/blender/editors/space_image/space_image.c
+++ b/source/blender/editors/space_image/space_image.c
@@ -669,14 +669,9 @@ 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);