LukasBanana / LLGL

Low Level Graphics Library (LLGL) is a thin abstraction layer for the modern graphics APIs OpenGL, Direct3D, Vulkan, and Metal
BSD 3-Clause "New" or "Revised" License
2.03k stars 135 forks source link

[Dx11] SwapChain doesn't preserve debug name after resize #110

Closed duckdoom4 closed 5 months ago

duckdoom4 commented 5 months ago

Not sure how you want to implement this, so thought I'd make it an issue instead of a PR.

After D3D11SwapChain::ResizeBackBuffer destroys the old buffers and calls CreateBackBuffer(); the second time, the new buffers don't get the debug name assigned if one was assigned during initialization.

So after the call it should call SetDebugName(debugName);. Could either store a copy of the name or maybe retrieve it from the private data before the destruction of the old buffers?

LukasBanana commented 5 months ago

Fixed with eb8a957.