SoftFever / OrcaSlicer

G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)
https://discord.gg/P4VE9UY9gJ
GNU Affero General Public License v3.0
5.86k stars 669 forks source link

Fix crash caused by wrong pointer used after VtxBuffer resized during 3d navigator rendering #5719

Closed Noisyfox closed 1 week ago

Noisyfox commented 1 week ago

The old drawList->_VtxWritePtr will be invalid if the VtxBuffer get resized during text rendering, which caused this crash. Use the vtx index instead of the raw printer.