Falcor icon indicating copy to clipboard operation
Falcor copied to clipboard

What's the purpose of this static vector in the destructor of RenderTargetView

Open crujose opened this issue 6 years ago • 1 comments

https://github.com/NVIDIAGameWorks/Falcor/blob/2d424d3a498d545f2f8b1c4921176e35b9ced4dd/Framework/Source/API/Vulkan/VKResourceViews.cpp#L189

Wouldn't this just grow indefinitely until the application closes?

crujose avatar Feb 23 '19 00:02 crujose

It's probably debug code but looking at what it does it might be important (pushing objects to the vector keeps the API view alive).

I'll have to debug and test it before removing it.

Nice catch! Thanks

nbentyNV avatar Feb 24 '19 02:02 nbentyNV