Fix linux build
This commit is contained in:
@@ -20,6 +20,8 @@ namespace OpenVulkano
|
||||
{
|
||||
std::array<uint32_t, 4> m_versionComponents;
|
||||
|
||||
VersionDataCompact() = default;
|
||||
|
||||
VersionDataCompact(const uint32_t major, const uint32_t minor, const uint32_t patch, const uint32_t build)
|
||||
: m_versionComponents({major, minor, patch, build})
|
||||
{}
|
||||
@@ -100,7 +102,7 @@ namespace OpenVulkano
|
||||
VersionDataCompact compact;
|
||||
VersionDataExtended extended;
|
||||
|
||||
VersionData() { memset(&this->compact, 0, sizeof(VersionDataCompact)); }
|
||||
VersionData() { new (&compact)VersionDataCompact(); }
|
||||
|
||||
VersionData(VersionData&& o) noexcept
|
||||
{
|
||||
@@ -192,7 +194,7 @@ namespace OpenVulkano
|
||||
{
|
||||
extended.~VersionDataExtended();
|
||||
}
|
||||
memset(&compact, 0, sizeof(compact));
|
||||
new (&compact)VersionDataCompact();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user