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>2014-07-01 20:11:44 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-07-01 20:25:25 +0400
commitecc2e298e8799c568840ead430264304cfc47250 (patch)
tree5460fbb454bfb6b9fb621ca68643da9ede1b91cf /source/blender/compositor
parent6c6fa749f6ee0ff7941696973b4b378a321e5709 (diff)
Fix T40903: Rendering: Alpha Channel is Broken
Diffstat (limited to 'source/blender/compositor')
-rw-r--r--source/blender/compositor/operations/COM_RenderLayersProg.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_RenderLayersProg.cpp b/source/blender/compositor/operations/COM_RenderLayersProg.cpp
index 7141dd7bf72..06f4f6d77cf 100644
--- a/source/blender/compositor/operations/COM_RenderLayersProg.cpp
+++ b/source/blender/compositor/operations/COM_RenderLayersProg.cpp
@@ -207,7 +207,12 @@ void RenderLayersAlphaProg::executePixelSampled(float output[4], float x, float
zero_v4(output);
}
else {
- doInterpolation(output, x, y, sampler);
+ float temp[4];
+ doInterpolation(temp, x, y, sampler);
+ output[0] = temp[3];
+ output[1] = 0.0f;
+ output[2] = 0.0f;
+ output[3] = 0.0f;
}
}