From be1c801fc24467cfefdc9e8f371418bca8269adb Mon Sep 17 00:00:00 2001 From: offtkp Date: Sun, 21 Jul 2024 16:37:37 +0300 Subject: [PATCH] Fix hashing for FragmentConfig --- include/PICA/pica_frag_config.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/PICA/pica_frag_config.hpp b/include/PICA/pica_frag_config.hpp index 89dd34205..ee18eee00 100644 --- a/include/PICA/pica_frag_config.hpp +++ b/include/PICA/pica_frag_config.hpp @@ -12,11 +12,11 @@ namespace PICA { struct OutputConfig { union { - u32 raw; + u32 raw{}; // Merge the enable + compare function into 1 field to avoid duplicate shaders // enable == off means a CompareFunction of Always BitField<0, 3, CompareFunction> alphaTestFunction; - BitField<4, 1, u32> depthMapEnable; + BitField<3, 1, u32> depthMapEnable; }; };