diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-02-04 11:51:25 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-02-04 11:51:25 +0300 |
commit | 5088d907e558daf5399cd8ee620380cb59522912 (patch) | |
tree | 6563cd04f29ae3253f87f28bcca43697a7d079de /source/blender/draw/engines/image/image_space_node.hh | |
parent | f7a6e8db04bc3f61e4e7ef6e6b07eaef9ce15066 (diff) |
Compositor: Backdrop mode changes node grid.
When viewing backdrop on top of the node grid, the grid would be
rendered black when the mode wasn't set to RGBA. This fix fixes this by
reverting the previous fix of drawing the backdrop and implement a
different one that recomputes the UV coordinates on the screen edges.
Diffstat (limited to 'source/blender/draw/engines/image/image_space_node.hh')
-rw-r--r-- | source/blender/draw/engines/image/image_space_node.hh | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/draw/engines/image/image_space_node.hh b/source/blender/draw/engines/image/image_space_node.hh index b0da3d1055b..15eef8f6499 100644 --- a/source/blender/draw/engines/image/image_space_node.hh +++ b/source/blender/draw/engines/image/image_space_node.hh @@ -56,7 +56,6 @@ class SpaceNodeAccessor : public AbstractSpaceAccessor { void get_shader_parameters(ShaderParameters &r_shader_parameters, ImBuf *ibuf) override { - r_shader_parameters.flags |= IMAGE_DRAW_FLAG_DEPTH_ALWAYS; if ((snode->flag & SNODE_USE_ALPHA) != 0) { /* Show RGBA */ r_shader_parameters.flags |= IMAGE_DRAW_FLAG_SHOW_ALPHA | IMAGE_DRAW_FLAG_APPLY_ALPHA; |