Get XR sessions to track the draw texture, so we render the XR framebuffer rather than the default canvas framebuffer

This commit is contained in:
Alan Jeffrey 2019-07-25 18:09:53 -05:00 committed by Josh Matthews
parent b9b01764fb
commit c757a9c009
9 changed files with 47 additions and 34 deletions

View file

@ -149,6 +149,10 @@ impl XRWebGLLayer {
pub fn session(&self) -> &XRSession {
&self.session
}
pub fn framebuffer(&self) -> &WebGLFramebuffer {
&self.framebuffer
}
}
impl XRWebGLLayerMethods for XRWebGLLayer {