http://www.html5gamedevs.com/topic/33410-trouble-with-rendertargettexture-clone-function/
@@ -24,7 +24,6 @@
case 6: // Mesh reference
(<any>destination)[property] = sourceProperty;
break;
- case 1: // Texture
case 2: // Color3
case 3: // FresnelParameters
case 4: // Vector2
@@ -32,6 +31,9 @@
case 7: // Color Curves
(<any>destination)[property] = instanciate?sourceProperty:sourceProperty.clone();
+ case 1: // Texture
+ (<any>destination)[property] = (instanciate||sourceProperty.isRenderTarget)?sourceProperty:sourceProperty.clone();
+ break;
}