Skip to content

Commit

Permalink
clone_from
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 committed May 21, 2024
1 parent a1ea61b commit 494919d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions anvil/src/shell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,12 @@ impl<BackendData: Backend> CompositorHandler for AnvilState<BackendData> {
add_pre_commit_hook::<Self, _>(surface, move |state, _dh, surface| {
let mut acquire_point = None;
let maybe_dmabuf = with_states(surface, |surface_data| {
acquire_point = surface_data
.cached_state
.pending::<DrmSyncobjCachedState>()
.acquire_point
.clone();
acquire_point.clone_from(
&surface_data
.cached_state
.pending::<DrmSyncobjCachedState>()
.acquire_point,
);
surface_data
.cached_state
.pending::<SurfaceAttributes>()
Expand Down

0 comments on commit 494919d

Please sign in to comment.