mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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
|
@ -205,6 +205,9 @@ impl WebGLFramebuffer {
|
|||
}
|
||||
|
||||
pub fn is_deleted(&self) -> bool {
|
||||
// TODO: if a framebuffer has an attachment which is invalid due to
|
||||
// being outside a webxr rAF, should this make the framebuffer invalid?
|
||||
// https://github.com/immersive-web/layers/issues/196
|
||||
self.is_deleted.get()
|
||||
}
|
||||
|
||||
|
@ -447,6 +450,9 @@ impl WebGLFramebuffer {
|
|||
} else {
|
||||
self.status.get()
|
||||
}
|
||||
// TODO: if a framebuffer has an attachment which is invalid due to
|
||||
// being outside a webxr rAF, should this make the framebuffer incomplete?
|
||||
// https://github.com/immersive-web/layers/issues/196
|
||||
}
|
||||
|
||||
pub fn check_status_for_rendering(&self) -> CompleteForRendering {
|
||||
|
@ -497,6 +503,10 @@ impl WebGLFramebuffer {
|
|||
self.is_initialized.set(true);
|
||||
}
|
||||
|
||||
// TODO: if a framebuffer has an attachment which is invalid due to
|
||||
// being outside a webxr rAF, should this make the framebuffer incomplete?
|
||||
// https://github.com/immersive-web/layers/issues/196
|
||||
|
||||
CompleteForRendering::Complete
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue