Graphics/TextSprite: Fix crash
Former-commit-id: c659044edff45afc7eec91065619bdfb402bc32d
This commit is contained in:
parent
6a3eb68225
commit
682b8811f5
|
|
@ -217,6 +217,8 @@ namespace Nz
|
||||||
for (auto& pair : m_renderInfos)
|
for (auto& pair : m_renderInfos)
|
||||||
{
|
{
|
||||||
RenderIndices& indices = pair.second;
|
RenderIndices& indices = pair.second;
|
||||||
|
if (indices.count == 0)
|
||||||
|
continue; //< Ignore empty render indices
|
||||||
|
|
||||||
SparsePtr<Color> color = colorPtr + indices.first*4;
|
SparsePtr<Color> color = colorPtr + indices.first*4;
|
||||||
SparsePtr<Vector3f> pos = posPtr + indices.first*4;
|
SparsePtr<Vector3f> pos = posPtr + indices.first*4;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue