memononen / nanovg

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

Expression is always false #538

Closed AntonSazonov closed 3 weeks ago

AntonSazonov commented 5 years ago

Hello. Take a look at line 1593 of nanovg_gl.h. Expression 'ctx != NULL' is always false.

mulle-nat commented 3 weeks ago

This is actually still valid. The bug report would probably be more telling, if it said that gl will leak, if the context creation failed.