mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
webgl: Support preserveDrawingBuffer.
This commit is contained in:
parent
08328c22d6
commit
a5e488bc2c
6 changed files with 29 additions and 21 deletions
|
@ -13,5 +13,5 @@ path = "lib.rs"
|
|||
[dependencies]
|
||||
euclid = "0.20"
|
||||
surfman = "0.3"
|
||||
surfman-chains = "0.4"
|
||||
surfman-chains = "0.5"
|
||||
|
||||
|
|
|
@ -147,7 +147,7 @@ impl WebrenderSurfman {
|
|||
let ref mut device = self.0.device.borrow_mut();
|
||||
let ref mut context = self.0.context.borrow_mut();
|
||||
if let Some(ref swap_chain) = self.0.swap_chain {
|
||||
return swap_chain.swap_buffers(device, context);
|
||||
return swap_chain.swap_buffers(device, context, surfman_chains::PreserveBuffer::No);
|
||||
}
|
||||
let mut surface = device.unbind_surface_from_context(context)?.unwrap();
|
||||
device.present_surface(context, &mut surface)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue