|
|
@@ -34,7 +34,8 @@ class Sampler extends Binding {
|
|
|
*/
|
|
|
this._onTextureDispose = () => {
|
|
|
|
|
|
- this.texture = null;
|
|
|
+ this.generation = null;
|
|
|
+ this.version = 0;
|
|
|
|
|
|
};
|
|
|
|
|
|
@@ -70,7 +71,8 @@ class Sampler extends Binding {
|
|
|
|
|
|
/**
|
|
|
* Sets the texture of this sampler.
|
|
|
- * @param {?Texture} value - The texture to set.
|
|
|
+ *
|
|
|
+ * @param {Texture} value - The texture to set.
|
|
|
*/
|
|
|
set texture( value ) {
|
|
|
|
|
|
@@ -139,7 +141,8 @@ class Sampler extends Binding {
|
|
|
|
|
|
clonedSampler._onTextureDispose = () => {
|
|
|
|
|
|
- clonedSampler.texture = null;
|
|
|
+ clonedSampler.generation = null;
|
|
|
+ clonedSampler.version = 0;
|
|
|
|
|
|
};
|
|
|
|