Fixed Serializer::WriteArray(const T* const value, const O size) and FontAtlas(const Str_8& filePath).

This commit is contained in:
Arron David Nelson 2024-02-19 22:58:59 -08:00
parent 27dfd430ad
commit 54012df3a1
2 changed files with 3 additions and 3 deletions

View File

@ -194,7 +194,7 @@ namespace ehs
Byte* r = new Byte[this->size + remainder]; Byte* r = new Byte[this->size + remainder];
Util::Copy(r, data, size); Util::Copy(r, data, this->size);
delete[] data; delete[] data;
data = r; data = r;

View File

@ -40,8 +40,8 @@ namespace ehs
glyphs[i] = Glyph(fData); glyphs[i] = Glyph(fData);
resolution = fData.ReadVec2<UInt_64>(); resolution = fData.ReadVec2<UInt_64>();
size = resolution.x * resolution.y; atlas = new Byte[resolution.x * resolution.y];
atlas = new Byte[size]; size = 0;
fData.ReadArray(atlas, &size); fData.ReadArray(atlas, &size);
} }