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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-05-03 15:54:12 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-05-03 15:54:12 +0400
commiteec8de9469a7da0d86832358678029c11e7452be (patch)
tree080ce2583f8dea67d7db791965480a1fed023ebf /source/blender/editors/render/render_opengl.c
parent3509daa1c1910bf1b2ce8fcbee2e5644b2b3d607 (diff)
Fix #31254: OpenGL-Rendering dark without Effect-Strip
Issue was caused by the fact, that sequencer is working in sRGB space, but when there's only image input strips we need to make sure conversion from byte to float buffer would keep float buffer in sRGB space and wouldn't make it linear as it's supposed to be in other areas.
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 a46e3c69456..cfc7ba0537f 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);
}