Skip to content
This repository
Browse code

Rebuild light texture if context is lost.

  • Loading branch information...
commit bf463c800d1f287171005a0c26be9096646b3d78 1 parent 24249f9
Kevin Reid authored May 25, 2012

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  world-render.js
1  world-render.js
@@ -624,6 +624,7 @@ var WorldRenderer = (function () {
624 624
         measuring.chunk.end();
625 625
       }, {
626 626
         aroundDraw: function (draw) {
  627
+          if (mustRebuild()) chunk.recompute(); // TODO kludge for light texture
627 628
           renderer.setLightTexture(lightTexture);
628 629
           draw();
629 630
         }

0 notes on commit bf463c8

Please sign in to comment.
Something went wrong with that request. Please try again.