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