Fixed #1615 Optimization performance for WebGL draw function

 Optimization performance for WebGL draw function