core: Drain WebGPU render-thread cleanup jobs (#4367)

This commit is contained in:
Sargun Vohra
2026-07-24 01:11:26 -07:00
committed by GitHub
parent 15fcee54dc
commit 5bcdc704b8
6 changed files with 16 additions and 5 deletions

View File

@@ -751,6 +751,8 @@ GLFWWebGPUBackend::~GLFWWebGPUBackend() {
// Mark any in-flight frame as completed so tear-down logic can continue.
frameInProgress.store(false, std::memory_order_release);
context.reset();
{
std::lock_guard<SpinLock> guard(textureStateLock);