-
-
Notifications
You must be signed in to change notification settings - Fork 36k
Open
Description
Description
I got on a production using a lot of Textures with load / unload a bug with material.map
, sadly i didnt understand exactly the exact part of the bug so i cant put reproduction step and the error in console dont allow me to trace it to the source. ( see below screenshot )

The bug disapear when i replaced material.map = txt
by material.colorNode = texture( txt ).rgb
& same with opacityNode.
regardless, i was wondering if I should do a PR changing :
if ( binding.isSampledTexture ) {
this.textures.updateTexture( binding.texture );
}
To
if ( binding.isSampledTexture && binding.texture ) {
this.textures.updateTexture( binding.texture );
}
In case the binding.texture was delete in between, i guess this condition race is happening in my scenario ?
Reproduction steps
- Coudnt find out whats exactly happening to create what i suspect is a race condition on the gpu.
Version
r179.1
Device
No response
Browser
No response
OS
No response