Skip to content

Commit

Permalink
Fix hashing for FragmentConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
OFFTKP committed Jul 21, 2024
1 parent a419312 commit d20a293
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/PICA/pica_frag_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
};

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit d20a293

Please sign in to comment.