mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
webgl: Don't dirty canvas element while in immersive mode.
This commit is contained in:
parent
148c24c29c
commit
ab75808b8c
3 changed files with 18 additions and 0 deletions
|
@ -502,6 +502,12 @@ impl WebGLRenderingContext {
|
|||
return;
|
||||
}
|
||||
|
||||
// Dirtying the canvas is unnecessary if we're actively displaying immersive
|
||||
// XR content right now.
|
||||
if self.global().as_window().in_immersive_xr_session() {
|
||||
return;
|
||||
}
|
||||
|
||||
self.canvas
|
||||
.upcast::<Node>()
|
||||
.dirty(NodeDamage::OtherNodeDamage);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue