This commit is contained in:
Bailey Harrison 2022-10-08 16:20:31 +01:00
parent ffed4a9deb
commit 2fd4453de6
4 changed files with 6 additions and 1 deletions

3
.gitmodules vendored
View File

@ -19,3 +19,6 @@
[submodule "dependencies/volk"]
path = dependencies/volk
url = https://github.com/zeux/volk
[submodule "dependencies/VulkanMemoryAllocator"]
path = dependencies/VulkanMemoryAllocator
url = https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator

1
dependencies/VulkanMemoryAllocator vendored Submodule

@ -0,0 +1 @@
Subproject commit c351692490513cdb0e5a2c925aaf7ea4a9b672f4

View File

@ -7,7 +7,7 @@ namespace engine {
Application::Application(const char* appName, const char* appVersion)
{
m_win = std::make_unique<Window>(appName, true);
m_win = std::make_unique<Window>(appName, false);
m_gfx = std::make_unique<GFXDevice>(appName, appVersion, m_win->getHandle());
}

View File

@ -952,6 +952,7 @@ namespace engine {
DepthStencil& operator=(const DepthStencil&) = delete;
~DepthStencil()
{
TRACE("Destroying DepthStencil...");
vkDestroyImageView(m_device->getHandle(), m_imageView, nullptr);
vkFreeMemory(m_device->getHandle(), m_imageMemory, nullptr);
vkDestroyImage(m_device->getHandle(), m_image, nullptr);