Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 902 vs 950 for /trunk/Source Code/Rendering/Camera/Camera.cpp

Diff revisions: vs.
  @@ -265,13 +265,16 @@
265 265 }
266 266
267 267 /// Tell the rendering API to set up our desired PoV
268 - void Camera::updateLookAt() {
269 - bool viewMatrixUpdated = updateViewMatrix();
270 - bool projMatrixUpdated = updateProjection();
271 - bool frustumUpdated = updateFrustum();
272 - if (viewMatrixUpdated || projMatrixUpdated || frustumUpdated) {
268 + bool Camera::updateLookAt() {
269 + bool cameraUpdated = updateViewMatrix();
270 + cameraUpdated = updateProjection() || cameraUpdated;
271 + cameraUpdated = updateFrustum() || cameraUpdated;
272 +
273 + if (cameraUpdated) {
273 274 onUpdate(*this);
274 275 }
276 +
277 + return cameraUpdated;
275 278 }
276 279
277 280 void Camera::setReflection(const Plane<F32>& reflectionPlane) {