Fixed Serializer::WriteArray(const T* const value, const O size)
and FontAtlas(const Str_8& filePath)
.
This commit is contained in:
parent
27dfd430ad
commit
54012df3a1
@ -194,7 +194,7 @@ namespace ehs
|
||||
|
||||
Byte* r = new Byte[this->size + remainder];
|
||||
|
||||
Util::Copy(r, data, size);
|
||||
Util::Copy(r, data, this->size);
|
||||
|
||||
delete[] data;
|
||||
data = r;
|
||||
|
@ -40,8 +40,8 @@ namespace ehs
|
||||
glyphs[i] = Glyph(fData);
|
||||
|
||||
resolution = fData.ReadVec2<UInt_64>();
|
||||
size = resolution.x * resolution.y;
|
||||
atlas = new Byte[size];
|
||||
atlas = new Byte[resolution.x * resolution.y];
|
||||
size = 0;
|
||||
fData.ReadArray(atlas, &size);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user