aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/vrdisplay.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2019-01-15 14:47:03 -0800
committerManish Goregaokar <manishsmail@gmail.com>2019-03-25 09:12:28 -0700
commit9ea28c4c63694220d6ac1fd22629087e84caaa1a (patch)
tree86d6ccefeda2120ce7f9d5b2f689cb55051575c9 /components/script/dom/vrdisplay.rs
parent798c88917bbfe1fcffeba678153e8aa2d238bbf8 (diff)
downloadservo-9ea28c4c63694220d6ac1fd22629087e84caaa1a.tar.gz
servo-9ea28c4c63694220d6ac1fd22629087e84caaa1a.zip
Flush renderstate queue before presenting
Diffstat (limited to 'components/script/dom/vrdisplay.rs')
-rw-r--r--components/script/dom/vrdisplay.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/vrdisplay.rs b/components/script/dom/vrdisplay.rs
index 93749a6777e..02aaeada707 100644
--- a/components/script/dom/vrdisplay.rs
+++ b/components/script/dom/vrdisplay.rs
@@ -651,6 +651,7 @@ impl VRDisplay {
self.presenting.set(true);
let xr = self.global().as_window().Navigator().Xr();
xr.set_active_immersive_session(&self);
+ self.process_renderstate_queue();
let (sync_sender, sync_receiver) = webgl_channel().unwrap();
*self.frame_data_receiver.borrow_mut() = Some(sync_receiver);