Browse Source

Lensflare: Fix dispose()

Mugen87 7 năm trước cách đây
mục cha
commit
099e436454
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      examples/js/objects/Lensflare.js

+ 2 - 1
examples/js/objects/Lensflare.js

@@ -188,7 +188,8 @@ THREE.Lensflare = function () {
 
 	this.dispose = function () {
 
-		material1.dispose();
+		material1a.dispose();
+		material1b.dispose();
 		material2.dispose();
 
 		tempMap.dispose();