Fixed #1615 Optimization performance for WebGL draw function