From 72c6324b6370e7bf6f7630f893bdea96497490b9 Mon Sep 17 00:00:00 2001 From: Florian Bartels <108917393+flba-eb@users.noreply.github.com> Date: Fri, 28 Apr 2023 23:13:44 +0200 Subject: [PATCH] Fix typo (#3732) --- wgpu-hal/src/gles/egl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgpu-hal/src/gles/egl.rs b/wgpu-hal/src/gles/egl.rs index b23d5028d..13e217f9d 100644 --- a/wgpu-hal/src/gles/egl.rs +++ b/wgpu-hal/src/gles/egl.rs @@ -393,7 +393,7 @@ impl AdapterContext { pub unsafe fn get_without_egl_lock(&self) -> MutexGuard { 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 @@ -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();