Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Fix issue with invalidation
Browse files Browse the repository at this point in the history
When we invalidate a renderer we also need to invalidate the parent
renderer. This is important because nodes from the parent renderer
might need to be reprojected.

Fixes #460
  • Loading branch information
arv committed Jun 26, 2014
1 parent c6d8152 commit ae6fcb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ShadowRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@
invalidate: function() {
if (!this.dirty) {
this.dirty = true;
var parentRenderer = this.parentRenderer;
if (parentRenderer)
parentRenderer.invalidate();
pendingDirtyRenderers.push(this);
if (renderTimer)
return;
Expand Down

0 comments on commit ae6fcb4

Please sign in to comment.