memononen / nanovg

Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
zlib License
5.15k stars 771 forks source link

Fixes FreeType errors when dealing with multiple NVGcontext objects. #621

Closed olliwang closed 2 years ago

olliwang commented 2 years ago

Originally there is only a shared FT_Library object. However, if we create multiple NVGcontext objects and as soon as we delete one, the shared FT_Library object will be released, too. And that would cause a problem for the rest of NVGcontext objects.

memononen commented 2 years ago

Thanks for the fix!

mulle-nat commented 2 years ago

This should fix #610.