mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make textures that come from webxr invalid outside an rAF
This commit is contained in:
parent
6a7e9ff438
commit
c1d064b626
4 changed files with 40 additions and 21 deletions
|
@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue