[Bf-blender-cvs] [47e8fc113b2] tmp-workbench-rewrite2: Fix: Draw: Initialize StencilSet in the correct order

Miguel Pozo noreply at git.blender.org
Fri Oct 14 16:24:49 CEST 2022


Commit: 47e8fc113b20040dc853ec115a3cce01592b7057
Author: Miguel Pozo
Date:   Fri Oct 14 16:23:19 2022 +0200
Branches: tmp-workbench-rewrite2
https://developer.blender.org/rB47e8fc113b20040dc853ec115a3cce01592b7057

Fix: Draw: Initialize StencilSet in the correct order

tmp

===================================================================

M	source/blender/draw/intern/draw_pass.hh

===================================================================

diff --git a/source/blender/draw/intern/draw_pass.hh b/source/blender/draw/intern/draw_pass.hh
index 3e1bf4aa1c1..3a020d65520 100644
--- a/source/blender/draw/intern/draw_pass.hh
+++ b/source/blender/draw/intern/draw_pass.hh
@@ -735,7 +735,7 @@ template<class T> inline void PassBase<T>::state_set(DRWState state)
 template<class T>
 inline void PassBase<T>::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<class T> inline void PassBase<T>::shader_set(GPUShader *shader)



More information about the Bf-blender-cvs mailing list