diff --git a/vendor/clouds3d.js b/vendor/clouds3d.js index 2ab8768..7d857d3 100644 --- a/vendor/clouds3d.js +++ b/vendor/clouds3d.js @@ -311,7 +311,7 @@ window.clouds3dRender = function(target) { // frames render normally before it loads — the shader just // samples a black texture in the meantime. canvas.__groundReady = false; - loadImageTexture(s.gl, 'ground.jpg').then(function(tex) { + loadImageTexture(canvas.__state.gl, 'ground.jpg').then(function(tex) { canvas.__ground = tex; canvas.__groundReady = true; }).catch(function(err) {