Change onreisze to set it directly via window.onresize
This commit is contained in:
parent
e1d2dc6631
commit
a5dcd545a4
@ -140,7 +140,7 @@ for (var key in jsonEmpire) {
|
||||
|
||||
}
|
||||
|
||||
function onWindowResize() {
|
||||
window.onresize = function() {
|
||||
|
||||
camera.aspect = window.innerWidth / window.innerHeight;
|
||||
camera.updateProjectionMatrix();
|
||||
|
Loading…
Reference in New Issue
Block a user