fixes texture formats for GLES2/GLES3

The texture formats for GLES2/GLES3 need to be slightly different than GL2/GL3, as described here: https://github.com/memononen/nanovg/issues/15