Fixed depth format selection. Fixes #13, Fixes #19

This commit is contained in:
saschawillems 2016-02-18 22:09:47 +01:00
parent f5919fc988
commit 97485ab357
6 changed files with 17 additions and 90 deletions

View file

@ -522,6 +522,7 @@ void VulkanExampleBase::initVulkan(bool enableValidation)
// Get the graphics queue
vkGetDeviceQueue(device, graphicsQueueIndex, 0, &queue);
// Find a suitable depth format
VkBool32 validDepthFormat = vkTools::getSupportedDepthFormat(physicalDevice, &depthFormat);
assert(validDepthFormat);