From 40b7f11b433da5e69122d87dbc281db5812e2ad8 Mon Sep 17 00:00:00 2001 From: polygonboutique Date: Thu, 24 Nov 2016 09:55:06 +0100 Subject: [PATCH] nothing fucking works anymore --- src/game-lib-game.js | 2 +- src/game-lib-scene.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/game-lib-game.js b/src/game-lib-game.js index e390d2b..004fb3d 100644 --- a/src/game-lib-game.js +++ b/src/game-lib-game.js @@ -30,7 +30,7 @@ GameLib.D3.Game.prototype.render = function( ) { for(var s in this.scenes) { var scene = this.scenes[s]; - scene.render(dt, renderer, scene.cameras[scene.activeCameraIndex]); + scene.render(dt, renderer); } }; diff --git a/src/game-lib-scene.js b/src/game-lib-scene.js index c4492dd..e91bba4 100644 --- a/src/game-lib-scene.js +++ b/src/game-lib-scene.js @@ -648,9 +648,7 @@ GameLib.D3.Scene.prototype.render = function( deltaTime, renderer ) { - if(this.sceneCamera) { - renderer.render(this.instance, this.sceneCamera); - } + renderer.render(this.instance, this.cameras[this.activeCameraIndex].instance); }; /**