diff --git a/src/Nazara/Graphics/TextSprite.cpp b/src/Nazara/Graphics/TextSprite.cpp index b4128d7ed..5a8f7d57c 100644 --- a/src/Nazara/Graphics/TextSprite.cpp +++ b/src/Nazara/Graphics/TextSprite.cpp @@ -324,7 +324,7 @@ void NzTextSprite::OnAtlasLayerChange(const NzAbstractAtlas* atlas, NzAbstractIm void NzTextSprite::UpdateData(InstanceData* instanceData) const { - instanceData->data.resize(m_localVertices.size()); + instanceData->data.resize(m_localVertices.size() * sizeof(NzVertexStruct_XYZ_Color_UV)); NzVertexStruct_XYZ_Color_UV* vertices = reinterpret_cast(instanceData->data.data()); NzSparsePtr colorPtr(&vertices[0].color, sizeof(NzVertexStruct_XYZ_Color_UV));