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
Notes: blender-bot 2023-02-14 09:23:43 +01:00
Referenced by issue #43974, Alpha output of movie clip node crashes blender when connected to viewer node with backdrop enabled
1 changed files with 3 additions and 5 deletions

View File

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