From d20a2938cd2cfa9f4972b7df520b0831d4308831 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/PICA/pica_frag_config.hpp b/include/PICA/pica_frag_config.hpp index 89dd34205..3431da65d 100644 --- a/include/PICA/pica_frag_config.hpp +++ b/include/PICA/pica_frag_config.hpp @@ -16,7 +16,7 @@ namespace PICA { // 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; }; }; @@ -188,8 +188,8 @@ namespace PICA { // Config used for identifying unique fragment pipeline configurations struct FragmentConfig { - OutputConfig outConfig; - TextureConfig texConfig; + OutputConfig outConfig{}; + TextureConfig texConfig{}; LightingConfig lighting; bool operator==(const FragmentConfig& config) const {