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:
Diffstat (limited to 'source/blender/editors/render/render_opengl.c')
-rw-r--r--source/blender/editors/render/render_opengl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/render/render_opengl.c b/source/blender/editors/render/render_opengl.c
index f9737b02a01..695e7ed0e7f 100644
--- a/source/blender/editors/render/render_opengl.c
+++ b/source/blender/editors/render/render_opengl.c
@@ -146,6 +146,13 @@ static void screen_opengl_render_apply(OGLRender *oglrender)
BLI_assert((oglrender->sizex == ibuf->x) && (oglrender->sizey == ibuf->y));
if (ibuf->rect_float == NULL) {
+ /* internally sequencer working in sRGB space and stores both bytes and float
+ * buffers in sRGB space, but if byte->float onversion doesn't happen in sequencer
+ * (e.g. when adding image sequence/movie into sequencer) there'll be only
+ * byte buffer and profile will still indicate sRGB->linear space conversion is needed
+ * here we're ensure there'll be no conversion happen and float buffer would store
+ * linear frame (sergey) */
+ ibuf->profile = IB_PROFILE_NONE;
IMB_float_from_rect(ibuf);
}