We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_texture
null
1 parent 2cd878d commit 4ff594bCopy full SHA for 4ff594b
src/renderers/common/Sampler.js
@@ -34,7 +34,8 @@ class Sampler extends Binding {
34
*/
35
this._onTextureDispose = () => {
36
37
- this.texture = null;
+ this.generation = null;
38
+ this.version = 0;
39
40
};
41
@@ -70,7 +71,8 @@ class Sampler extends Binding {
70
71
72
/**
73
* Sets the texture of this sampler.
- * @param {?Texture} value - The texture to set.
74
+ *
75
+ * @param {Texture} value - The texture to set.
76
77
set texture( value ) {
78
@@ -139,7 +141,8 @@ class Sampler extends Binding {
139
141
140
142
clonedSampler._onTextureDispose = () => {
143
- clonedSampler.texture = null;
144
+ clonedSampler.generation = null;
145
+ clonedSampler.version = 0;
146
147
148
0 commit comments