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

@ -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
}