diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-02-12 20:21:53 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-02-12 20:21:53 +0300 |
commit | 00e012d5644f1d9d4ebb6e20b1065bd1709a9cbd (patch) | |
tree | 9d41dc988bd0749e6fd773b79a3be610c8853f20 /source/blender/draw/engines/gpencil/gpencil_engine.c | |
parent | c10e05ceb89ebb52707d519e091ebab9ca62e40b (diff) |
GPencil: Fix colormanagement broken by recent refactor
This is a quick fix that should work until the GPencil refactor lands.
Diffstat (limited to 'source/blender/draw/engines/gpencil/gpencil_engine.c')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_engine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c index ce79164a80b..d049abbade5 100644 --- a/source/blender/draw/engines/gpencil/gpencil_engine.c +++ b/source/blender/draw/engines/gpencil/gpencil_engine.c @@ -1061,7 +1061,7 @@ void GPENCIL_draw_scene(void *ved) GPU_framebuffer_clear_color_depth_stencil(fbl->temp_fb_b, clearcol, 1.0f, 0x0); stl->storage->blend_mode = array_elm->mode; stl->storage->mask_layer = (int)array_elm->mask_layer; - stl->storage->tonemapping = DRW_state_do_color_management() ? 0 : 1; + stl->storage->tonemapping = 1; DRW_draw_pass(psl->blend_pass); stl->storage->tonemapping = 0; @@ -1103,7 +1103,7 @@ void GPENCIL_draw_scene(void *ved) GPU_framebuffer_bind(fbl->main); } /* tonemapping */ - stl->storage->tonemapping = DRW_state_do_color_management() ? 0 : 1; + stl->storage->tonemapping = 1; /* active select flag and selection color */ if (!is_render) { |