JX-Master / LunaSDK

Luna SDK is a C++ software development framework for real-time rendering applications.
Other
123 stars 8 forks source link

`construct_type` creashes for instanced structure types. #76

Closed JX-Master closed 2 months ago

JX-Master commented 2 months ago

Currently instanced structure type used structure_default_construct as constructor if the user does not provide one, which is incorrect, since structure_default_construct reinterprets typeinfo_t parameter as StructureTypeInfo*, however GenericStructureInstancedTypeInfo* is actually passed, causing memory access violation.