mirror of
https://github.com/encounter/aurora.git
synced 2026-07-09 18:19:33 -07:00
Don't call refresh_surface from worker thread
This commit is contained in:
+1
-1
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user