Change onreisze to set it directly via window.onresize

This commit is contained in:
Rob L 2016-07-07 12:55:58 -04:00
parent e1d2dc6631
commit a5dcd545a4

View File

@ -140,7 +140,7 @@ for (var key in jsonEmpire) {
} }
function onWindowResize() { window.onresize = function() {
camera.aspect = window.innerWidth / window.innerHeight; camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix(); camera.updateProjectionMatrix();