Small refactor in Texture.setSource method.
Small refactor in Texture.setSource method.

sereepap2029/playcanvas,sereepap2029/playcanvas,aidinabedi/playcanvas-engine,playcanvas/engine,H1Gdev/engine,aidinabedi/playcanvas-engine,guycalledfrank/engine,MicroWorldwide/PlayCanvas,sereepap2029/playcanvas,MicroWorldwide/PlayCanvas,H1Gdev/engine,guycalledfrank/engine,playcanvas/engine