Make textures that come from webxr invalid outside an rAF

This commit is contained in:
Alan Jeffrey 2020-08-06 17:51:58 -05:00
parent 6a7e9ff438
commit c1d064b626
4 changed files with 40 additions and 21 deletions

View file

@ -3563,7 +3563,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.8
fn IsTexture(&self, texture: Option<&WebGLTexture>) -> bool {
texture.map_or(false, |tex| {
self.validate_ownership(tex).is_ok() && tex.target().is_some() && !tex.is_deleted()
self.validate_ownership(tex).is_ok() && tex.target().is_some() && !tex.is_invalid()
})
}