[Bf-blender-cvs] [4112f0241b2] master: Fix: Draw: Initialize StencilSet in the correct order

Miguel Pozo noreply at git.blender.org
Fri Oct 14 17:00:20 CEST 2022


Commit: 4112f0241b20c9b0904bec4e69aecf2af1844a86
Author: Miguel Pozo
Date:   Fri Oct 14 16:23:19 2022 +0200
Branches: master
https://developer.blender.org/rB4112f0241b20c9b0904bec4e69aecf2af1844a86

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 3fae6e09932..24dfdd1b97b 100644
--- a/source/blender/draw/intern/draw_pass.hh
+++ b/source/blender/draw/intern/draw_pass.hh
@@ -734,7 +734,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