diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-02-08 05:36:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-02-08 05:36:41 +0300 |
commit | f77110e789beda945d3725f19e6090ed20e2c613 (patch) | |
tree | f2897581befc759b8f34d80a493bca2eb273da6a /source | |
parent | ba1ca9148dad37667dae4ffb2fb75e4eedf02a77 (diff) |
Fix T47347: Z-pass defaults to zero
Use the same default value for Z-depth in the compositor as everywhere else.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/compositor/operations/COM_RenderLayersProg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_RenderLayersProg.cpp b/source/blender/compositor/operations/COM_RenderLayersProg.cpp index 2a45690a9f2..543ca0f7c11 100644 --- a/source/blender/compositor/operations/COM_RenderLayersProg.cpp +++ b/source/blender/compositor/operations/COM_RenderLayersProg.cpp @@ -277,7 +277,7 @@ void RenderLayersDepthProg::executePixelSampled(float output[4], float x, float float *inputBuffer = this->getInputBuffer(); if (inputBuffer == NULL || ix < 0 || iy < 0 || ix >= (int)this->getWidth() || iy >= (int)this->getHeight() ) { - output[0] = 0.0f; + output[0] = 10e10f; } else { unsigned int offset = (iy * this->getWidth() + ix); |