Browse Source

remove unused code

aardgoose 5 năm trước cách đây
mục cha
commit
2af956b1a5
1 tập tin đã thay đổi với 0 bổ sung17 xóa
  1. 0 17
      examples/webgl_materials_compile.html

+ 0 - 17
examples/webgl_materials_compile.html

@@ -58,7 +58,6 @@
 			var frame = new NodeFrame();
 			var teapot;
 			var controls;
-			var rtTexture, rtMaterial;
 			var meshes = [];
 
 			document.getElementById( "preload" ).addEventListener( 'click', function () {
@@ -151,20 +150,6 @@
 
 				if ( mesh.material ) mesh.material.dispose();
 
-				if ( rtTexture ) {
-
-					rtTexture.dispose();
-					rtTexture = null;
-
-				}
-
-				if ( rtMaterial ) {
-
-					rtMaterial.dispose();
-					rtMaterial = null;
-
-				}
-
 				var mtl = new PhongNodeMaterial();
 
 				var time = new TimerNode();
@@ -218,8 +203,6 @@
 
 				renderer.setSize( width, height );
 
-				if ( rtTexture ) rtTexture.setSize( width, height );
-
 			}
 
 			function animate() {