nanovg uniform optimization fix for WebGL