X-Git-Url: https://git-public.kairo.at/?p=lantea.git;a=blobdiff_plain;f=js%2Fmap.js;h=cf095cb13f3d199e4226791a4fbde8dfa5ebcb9c;hp=ccfa87d419f74d138bd2d67923d72fbad74ce8f7;hb=0c7de38028c2e5a599ba6e3c18f2a6b00061439a;hpb=41e2dba2ac81dfd8eba2aafa05709fead8dc8f07;ds=sidebyside diff --git a/js/map.js b/js/map.js index ccfa87d..cf095cb 100644 --- a/js/map.js +++ b/js/map.js @@ -355,7 +355,7 @@ var gMap = { 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; @@ -364,7 +364,7 @@ var gMap = { } } } - requestAnimationFrame(function(aTimestamp) { gMap.drawGL() }); + window.requestAnimationFrame(function(aTimestamp) { gMap.drawGL() }); }, drawGL: function() {