fixbug: The material Material_MR has not been compiled to include the required GLSL or SPIR-V chunks for the vertex shader (variant=5, filtered=5)

Because the member variable mVariantFilter is not initialized, random values will appear on Windows 10 or others platform, which eventually causes some variants to be filtered out by this mVariantFilter. (#9000)
This commit is contained in:
chenriji
2025-07-25 11:07:02 -07:00
committed by GitHub
parent ff13035aab
commit 7048a9847a
+1 -1
View File
@@ -58,7 +58,7 @@ private:
std::vector<Material*> mMaterials;
Engine* const mEngine;
const bool mOptimizeShaders;
filament::UserVariantFilterMask mVariantFilter;
filament::UserVariantFilterMask mVariantFilter{};
};
JitShaderProvider::JitShaderProvider(Engine* engine, bool optimizeShaders,