fixed #2295 fixed a bug that some waring message of WebGL shows when load loading scene.

fixed a bug that some waring message of WebGL shows when load loading scene.