diff options
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/interface/RenderDeviceVk.h | 2 | ||||
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp | 8 |
2 files changed, 2 insertions, 8 deletions
diff --git a/Graphics/GraphicsEngineVulkan/interface/RenderDeviceVk.h b/Graphics/GraphicsEngineVulkan/interface/RenderDeviceVk.h index df032884..0d75582e 100644 --- a/Graphics/GraphicsEngineVulkan/interface/RenderDeviceVk.h +++ b/Graphics/GraphicsEngineVulkan/interface/RenderDeviceVk.h @@ -57,7 +57,7 @@ public: /// This method is automatically called by ISwapChain::Present(). /// \param [in] ForceRelease - Forces release of all objects. Use this option with /// great care only if you are sure the resources are not - /// in use by the GPU (such as when the device has just be idled). + /// in use by the GPU (such as when the device has just been idled). virtual void ReleaseStaleResources(bool ForceRelease = false) = 0; /// Creates a texture object from native Vulkan image diff --git a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp index d7e572ac..c8222b6a 100644 --- a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp @@ -777,13 +777,7 @@ namespace Diligent // be destroyed before the pools are actually returned to the global pool manager. m_DynamicDescrSetAllocator.ReleasePools(m_SubmittedBuffersCmdQueueMask); - if (!m_bIsDeferred) - { - // Make all stale resource move into the release queue - DeviceVkImpl.FlushStaleResources(m_CommandQueueId); - } - - EndFrame(); + EndFrame(DeviceVkImpl); } void DeviceContextVkImpl::Flush() |
