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

Commit 3bbdfc7

Browse files
committed
Adjust for surfman-chains swapping changes.
1 parent da44de5 commit 3bbdfc7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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)