Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 801 vs 818 for /trunk/Source Code/Rendering/Camera/Camera.cpp

Diff revisions: vs.
  @@ -220,10 +220,12 @@
220 220
221 221 /// Tell the rendering API to set up our desired PoV
222 222 void Camera::updateLookAt() {
223 - updateViewMatrix();
224 - updateProjection();
225 - updateFrustum();
226 - updateListeners();
223 + bool viewMatrixUpdated = updateViewMatrix();
224 + bool projMatrixUpdated = updateProjection();
225 + bool frustumUpdated = updateFrustum();
226 + if (viewMatrixUpdated || projMatrixUpdated || frustumUpdated) {
227 + updateListeners();
228 + }
227 229 }
228 230
229 231 void Camera::reflect(const Plane<F32>& reflectionPlane) {