mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
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:
parent
b9b01764fb
commit
c757a9c009
9 changed files with 47 additions and 34 deletions
|
@ -149,6 +149,10 @@ impl XRWebGLLayer {
|
|||
pub fn session(&self) -> &XRSession {
|
||||
&self.session
|
||||
}
|
||||
|
||||
pub fn framebuffer(&self) -> &WebGLFramebuffer {
|
||||
&self.framebuffer
|
||||
}
|
||||
}
|
||||
|
||||
impl XRWebGLLayerMethods for XRWebGLLayer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue