diff --git a/examples/common/cube_atlas.cpp b/examples/common/cube_atlas.cpp index 7b83f6f75..9407363a3 100644 --- a/examples/common/cube_atlas.cpp +++ b/examples/common/cube_atlas.cpp @@ -149,6 +149,7 @@ bool RectanglePacker::addRectangle(uint16_t _width, uint16_t _height, uint16_t& { m_skyline.erase(m_skyline.begin() + ii); --ii; + --num; } else {