Compare commits

...

1 Commits

Author SHA1 Message Date
Powei Feng
b3fc8e3796 matc: initialize CustomVariable
The default values were not provided via default construction.
Caused matc to crash on Linux.
2024-08-22 13:32:54 -07:00

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;