var imgObj = new Image();
imgObj.onload = function() {
gMap.loadImageToTexture(imgObj, aTileKey);
- requestAnimationFrame(function(aTimestamp) { gMap.drawGL() });
+ window.requestAnimationFrame(function(aTimestamp) { gMap.drawGL() });
URL.revokeObjectURL(imgURL);
}
imgObj.src = imgURL;
}
}
}
- requestAnimationFrame(function(aTimestamp) { gMap.drawGL() });
+ window.requestAnimationFrame(function(aTimestamp) { gMap.drawGL() });
},
drawGL: function() {