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

@@ -202,6 +202,7 @@ HeadlessBackend::HeadlessBackend(Size size_, SwapBehaviour swapBehaviour_, gfx::
HeadlessBackend::~HeadlessBackend() {
// Explicitly reset the renderable resource
setResource(nullptr);
context.reset();
if (impl) {
// Clean up textures