From cebba6aabb784052b7cc567ee896414efbd36c61 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Wed, 17 Jun 2026 00:01:07 -0600 Subject: [PATCH] Don't call refresh_surface from worker thread --- lib/aurora.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/aurora.cpp b/lib/aurora.cpp index 4bc189a..8843b7b 100644 --- a/lib/aurora.cpp +++ b/lib/aurora.cpp @@ -378,7 +378,7 @@ void end_frame() noexcept { case wgpu::SurfaceGetCurrentTextureStatus::SuccessSuboptimal: case wgpu::SurfaceGetCurrentTextureStatus::Outdated: Log.info("Surface texture is {}, reconfiguring swapchain", magic_enum::enum_name(surfaceStatus)); - webgpu::refresh_surface(false); + window::push_custom_event(window::CustomEvent::RefreshSurface); break; case wgpu::SurfaceGetCurrentTextureStatus::Lost: Log.warn("Surface texture is {}, releasing surface", magic_enum::enum_name(surfaceStatus));