aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglframebuffer.rs
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2020-08-06 17:51:58 -0500
committerAlan Jeffrey <ajeffrey@mozilla.com>2020-08-06 17:51:58 -0500
commitc1d064b626e73d92c118a9abcb566f2bf0817214 (patch)
tree8bb808ad4b38b5c7bbb20591eb82191aea0097b8 /components/script/dom/webglframebuffer.rs
parent6a7e9ff438da01f5ea6e566d985e8df9ceeb6adf (diff)
downloadservo-c1d064b626e73d92c118a9abcb566f2bf0817214.tar.gz
servo-c1d064b626e73d92c118a9abcb566f2bf0817214.zip
Make textures that come from webxr invalid outside an rAF
Diffstat (limited to 'components/script/dom/webglframebuffer.rs')
-rw-r--r--components/script/dom/webglframebuffer.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/components/script/dom/webglframebuffer.rs b/components/script/dom/webglframebuffer.rs
index 9539ac90507..8172b1b6c4e 100644
--- a/components/script/dom/webglframebuffer.rs
+++ b/components/script/dom/webglframebuffer.rs
@@ -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
}