Don't call refresh_surface from worker thread

This commit is contained in:
Luke Street
2026-06-17 00:01:07 -06:00
parent 22351fb0b7
commit cebba6aabb
+1 -1
View File
@@ -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));