Skip to content
This repository was archived by the owner on Feb 16, 2025. It is now read-only.

Commit 7763f48

Browse files
authored
Auto merge of #190 - jdm:swap-change, r=asajeffrey
Adjust for surfman-chains swapping changes. Depends on servo/surfman-chains#9.
2 parents da44de5 + 70fbe70 commit 7763f48

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

webxr/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ openxr = { git = "https://github.com/servo/openxrs.git", branch="secondary-views
4242
serde = { version = "1.0", optional = true }
4343
sparkle = "0.1"
4444
surfman = { version = "0.3", features = ["sm-x11"] }
45-
surfman-chains = "0.4"
45+
surfman-chains = "0.5"
4646
time = "0.1.42"
4747

4848
[target.'cfg(target_os = "windows")'.dependencies]

webxr/glwindow/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,11 @@ impl DeviceAPI for GlWindowDevice {
322322
Some(target_swap_chain) => {
323323
// Rendering to a surfman swap chain
324324
target_swap_chain
325-
.swap_buffers(&mut self.device, &mut self.context)
325+
.swap_buffers(
326+
&mut self.device,
327+
&mut self.context,
328+
surfman_chains::PreserveBuffer::No,
329+
)
326330
.unwrap();
327331
}
328332
None => {

webxr/surfman_layer_manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ impl LayerManagerAPI<SurfmanGL> for SurfmanLayerManager {
233233
.recycle_surface_texture(device, context, surface_texture)
234234
.map_err(|err| Error::BackendSpecific(format!("{:?}", err)))?;
235235
swap_chain
236-
.swap_buffers(device, context)
236+
.swap_buffers(device, context, surfman_chains::PreserveBuffer::No)
237237
.map_err(|err| Error::BackendSpecific(format!("{:?}", err)))?;
238238
}
239239
Ok(())

0 commit comments

Comments
 (0)