Fix #29692: 3D Scene is Rendering Bright in the VSE

profile conversion for sequencer result sued to happen even if
color management is disabled for scene which made frames brighter.
This commit is contained in:
Sergey Sharybin 2011-12-28 20:11:36 +00:00
parent 9d3f5ea334
commit becc094119
1 changed files with 4 additions and 1 deletions

View File

@ -2025,7 +2025,10 @@ static ImBuf * seq_render_scene_strip_impl(
}
/* float buffers in the sequencer are not linear */
ibuf->profile= IB_PROFILE_LINEAR_RGB;
if(scene->r.color_mgt_flag & R_COLOR_MANAGEMENT)
ibuf->profile= IB_PROFILE_LINEAR_RGB;
else
ibuf->profile= IB_PROFILE_NONE;
IMB_convert_profile(ibuf, IB_PROFILE_SRGB);
}
else if (rres.rect32) {