Repository navigation
New WebXR API using surfman - #72
Conversation
|
Probably shouldn't be merged until servo+surfman is ready to go. |
|
Note: I've only tested the glwindow implementation! |
|
Panic when leaving immersive mode with the openxr backend: |
|
That would be the drop code for a surface being run without destroy'ing it first. |
|
OpenXrDevice contains an Option<(Device, Context)>, so I suppose it needs to be more careful about destroying the context before that value is dropped. |
|
Ah, that's a pretty easy fix, we can destroy the context in the drop code. |
|
@jdm: do you want to try again and see if that fixed it? |
|
The matching servo PR is servo/servo#24482 |
|
r? @Manishearth (it needs squashed before landing) |
|
|
||
| fn request_session(&mut self, mode: SessionMode) -> Result<Session, Error> { | ||
| let webgl = self.webgl.as_ref().ok_or(Error::NoMatchingDevice)?; | ||
| let swap_chains = self.swap_chains.as_mut().ok_or(Error::NoMatchingDevice)?; |
There was a problem hiding this comment.
Well, I think the spec says the only error this can return is NoMatchingDevice?
There was a problem hiding this comment.
Sure, but we can be more specific in our API if we want. r=me either way.
|
@bors-servo r=Manishearth |
|
📌 Commit c42611a has been approved by |
New WebXR API using surfman This is a surfman-aware webxr. Fixes #60
|
☀️ Test successful - checks-travis |
This is a surfman-aware webxr. Fixes #60