Update min data size
This commit is contained in:
@@ -24,7 +24,7 @@ namespace OpenVulkano::Scene
|
||||
{
|
||||
uint8_t packed = 1;
|
||||
uint8_t version = 1;
|
||||
uint16_t reserved = 0;
|
||||
[[maybe_unused]] uint16_t reserved = 0;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace OpenVulkano::Scene
|
||||
|
||||
void FontAtlas::Load(const std::span<char> data)
|
||||
{
|
||||
if (data.size() < 16) { Logger::DATA->warn("Font atlas file is invalid!"); return; };
|
||||
if (data.size() < 28) { Logger::DATA->warn("Font atlas file is invalid!"); return; };
|
||||
FontAtlasFileFlags flags;
|
||||
std::memcpy(&flags, data.data() + data.size() - sizeof(flags), sizeof(flags));
|
||||
size_t headerSize = sizeof(FontAtlasFileFlags) + sizeof(uint64_t);
|
||||
|
||||
Reference in New Issue
Block a user