Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Pozo <pragma37@gmail.com>2022-10-14 17:23:19 +0300
committerMiguel Pozo <pragma37@gmail.com>2022-10-14 18:00:13 +0300
commit4112f0241b20c9b0904bec4e69aecf2af1844a86 (patch)
tree4e07eabcafd9e0bf0229f18a8ff274ea9ec66db9
parentf940ecde7aa569c5377b31b9cdb0e7810c9064b0 (diff)
Fix: Draw: Initialize StencilSet in the correct order
tmp
-rw-r--r--source/blender/draw/intern/draw_pass.hh2
1 files changed, 1 insertions, 1 deletions
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)