From 4112f0241b20c9b0904bec4e69aecf2af1844a86 Mon Sep 17 00:00:00 2001 From: Miguel Pozo Date: Fri, 14 Oct 2022 16:23:19 +0200 Subject: Fix: Draw: Initialize StencilSet in the correct order tmp --- source/blender/draw/intern/draw_pass.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/draw/intern/draw_pass.hh b/source/blender/draw/intern/draw_pass.hh index 3fae6e09932..24dfdd1b97b 100644 --- a/source/blender/draw/intern/draw_pass.hh +++ b/source/blender/draw/intern/draw_pass.hh @@ -734,7 +734,7 @@ template inline void PassBase::state_set(DRWState state) template inline void PassBase::state_stencil(uint8_t write_mask, uint8_t reference, uint8_t compare_mask) { - create_command(Type::StencilSet).stencil_set = {write_mask, reference, compare_mask}; + create_command(Type::StencilSet).stencil_set = {write_mask, compare_mask, reference}; } template inline void PassBase::shader_set(GPUShader *shader) -- cgit v1.2.3