matc: initialize CustomVariable (#8076)

The default values were not provided via default construction.
Caused matc to crash on Linux.
This commit is contained in:
Powei Feng
2024-08-23 09:09:56 -07:00
committed by GitHub
parent 4ae7aa6a1b
commit be22e9305d

View File

@@ -713,8 +713,8 @@ public:
struct CustomVariable {
utils::CString name;
Precision precision;
bool hasPrecision;
Precision precision = Precision::DEFAULT;
bool hasPrecision = false;
};
static constexpr size_t MATERIAL_PROPERTIES_COUNT = filament::MATERIAL_PROPERTIES_COUNT;