Cleanup: Draw Manager remove do_color_management from drawing context.
The do_color_management option was set, but never read.
This commit is contained in:
parent
9ab31b53b7
commit
3abf56db27
|
@ -1524,7 +1524,6 @@ void DRW_draw_view(const bContext *C)
|
|||
(v3d->overlay.flag & V3D_OVERLAY_HIDE_TEXT) != 0);
|
||||
DST.options.draw_background = (scene->r.alphamode == R_ADDSKY) ||
|
||||
(v3d->shading.type != OB_RENDER);
|
||||
DST.options.do_color_management = true;
|
||||
DRW_draw_render_loop_ex(depsgraph, engine_type, region, v3d, viewport, C);
|
||||
}
|
||||
else {
|
||||
|
@ -1716,7 +1715,6 @@ void DRW_draw_render_loop_offscreen(struct Depsgraph *depsgraph,
|
|||
/* Reset before using it. */
|
||||
drw_state_prepare_clean_for_draw(&DST);
|
||||
DST.options.is_image_render = is_image_render;
|
||||
DST.options.do_color_management = do_color_management;
|
||||
DST.options.draw_background = draw_background;
|
||||
DRW_draw_render_loop_ex(depsgraph, engine_type, region, v3d, render_viewport, NULL);
|
||||
|
||||
|
|
|
@ -543,7 +543,6 @@ typedef struct DRWManager {
|
|||
uint is_depth : 1;
|
||||
uint is_image_render : 1;
|
||||
uint is_scene_render : 1;
|
||||
uint do_color_management : 1;
|
||||
uint draw_background : 1;
|
||||
uint draw_text : 1;
|
||||
} options;
|
||||
|
|
Loading…
Reference in New Issue