On Wed Aug 27 12:01:03 2025 +0000, Yuxuan Shui wrote:
good point, i didn't know about this. i haven't confirmed it yet but there could be a race condition because texture resource unload is done asynchronously. i.e. implicit swapchain destroyed -> texture unload queued -> new swapchain created -> texture unload called.
We call wined3d_cs_finish() in adapter_gl_init_3d() before setting d3d_initialized to TRUE, though. [It's missing from the Vulkan adapter, which is concerning, but you did mention GL in the initial description]. I don't think that specific race should be possible.