fix for https://github.com/memononen/nanovg/issues/3

Fix for https://github.com/memononen/nanovg/issues/3