Skip to content

Commit

Permalink
Preload the cone texture.
Browse files Browse the repository at this point in the history
  • Loading branch information
emoller committed Mar 8, 2012
1 parent ca01331 commit f23719f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ var demo = new (function () {
// The gl variable is used by other scripts
window.gl = gl;

// Preload the cone texture.
getConeTexture();

var that = this;
window.addEventListener('resize', function(e) { that.resize(e); }, false);
window.addEventListener('orientationchange', function(e) { that.resize(e); }, false);
Expand Down

0 comments on commit f23719f

Please sign in to comment.