Fix T43974: Alpha output of movie clip node crashes blender

Issue was caused by a bug in the memory optimization commit,
should be backported to the final release branch.
This commit is contained in:
Sergey Sharybin
2015-03-12 17:13:38 +05:00
parent 13d443496c
commit c4b3b60aad

View File

@@ -124,9 +124,7 @@ MovieClipAlphaOperation::MovieClipAlphaOperation() : MovieClipBaseOperation()
void MovieClipAlphaOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler) void MovieClipAlphaOperation::executePixelSampled(float output[4], float x, float y, PixelSampler sampler)
{ {
MovieClipBaseOperation::executePixelSampled(output, x, y, sampler); float result[4];
output[0] = output[3]; MovieClipBaseOperation::executePixelSampled(result, x, y, sampler);
output[1] = 0.0f; output[0] = result[3];
output[2] = 0.0f;
output[3] = 0.0f;
} }