Skip to content

Commit

Permalink
Merge pull request #11 from gfx-rs/trunk
Browse files Browse the repository at this point in the history
Updating to latest wgpu trunk
  • Loading branch information
gents83 authored Apr 29, 2023
2 parents 4529f73 + 4220a42 commit 8d6f531
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wgpu-core/src/track/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ impl<T: ResourceUses> fmt::Display for InvalidUse<T> {
write!(
f,
"conflicting usages. Current usage {current:?} and new usage {new:?}. \
{exclusive:?} is an exclusive usage and cannot be used with any other\
{exclusive:?} is an exclusive usage and cannot be used with any other \
usages within the usage scope (renderpass or compute dispatch)"
)
}
Expand Down
4 changes: 2 additions & 2 deletions wgpu-hal/src/gles/egl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ impl AdapterContext {
pub unsafe fn get_without_egl_lock(&self) -> MutexGuard<glow::Context> {
self.glow
.try_lock_for(Duration::from_secs(CONTEXT_LOCK_TIMEOUT_SECS))
.expect("Could not lock adapter context. This is most-likely a deadlcok.")
.expect("Could not lock adapter context. This is most-likely a deadlock.")
}

/// Obtain a lock to the EGL context and get handle to the [`glow::Context`] that can be used to
Expand All @@ -405,7 +405,7 @@ impl AdapterContext {
// Don't lock forever. If it takes longer than 1 second to get the lock we've got a
// deadlock and should panic to show where we got stuck
.try_lock_for(Duration::from_secs(CONTEXT_LOCK_TIMEOUT_SECS))
.expect("Could not lock adapter context. This is most-likely a deadlcok.");
.expect("Could not lock adapter context. This is most-likely a deadlock.");

let egl = self.egl.as_ref().map(|egl| {
egl.make_current();
Expand Down

0 comments on commit 8d6f531

Please sign in to comment.