Skip to content

Commit

Permalink
filamat: Fix MaterialInfo::userMaterialHasCustomDepth init (#7292)
Browse files Browse the repository at this point in the history
Leaving it uninitialized leads to msan failure.
  • Loading branch information
poweifeng authored Oct 24, 2023
1 parent deb3eb0 commit 7b7dfad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/filamat/src/MaterialBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,9 @@ void MaterialBuilder::prepareToBuild(MaterialInfo& info) noexcept {
info.vertexDomainDeviceJittered = mVertexDomainDeviceJittered;
info.featureLevel = mFeatureLevel;
info.groupSize = mGroupSize;

// This is determined via static analysis of the glsl after prepareToBuild().
info.userMaterialHasCustomDepth = false;
}

bool MaterialBuilder::findProperties(backend::ShaderStage type,
Expand Down

0 comments on commit 7b7dfad

Please sign in to comment.