浏览代码

Fixed canvas examples with wrong order of calls.
Maybe the renderer should keep a list of things to update for the next render…?

Mr.doob 11 年之前
父节点
当前提交
8e0add1d44
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      examples/canvas_geometry_panorama.html
  2. 1 1
      examples/canvas_geometry_panorama_fisheye.html

+ 1 - 1
examples/canvas_geometry_panorama.html

@@ -119,8 +119,8 @@
 				var image = new Image();
 				image.onload = function () {
 
+					texture.image = this;
 					texture.needsUpdate = true;
-					material.map.image = this;
 
 					render();
 

+ 1 - 1
examples/canvas_geometry_panorama_fisheye.html

@@ -129,8 +129,8 @@
 				var image = new Image();
 				image.onload = function () {
 
+					texture.image = this;
 					texture.needsUpdate = true;
-					material.map.image = this;
 
 					render();