Remove a bad check making us use the wrong way to copy depth buffers. Add a cap so we can try to unify BlitFramebufferDepth later.

This commit is contained in:
Henrik Rydgård committed 2017-10-26 10:57:00 +02:00
1 parent 12f8580984
commit 613cc46285
6 files changed
+16 -3

No files matched your search

+4 -1
View File
@@ -658,7 +658,10 @@ VKContext::VKContext(VulkanContext *vulkan)
caps_.dualSourceBlend = vulkan->GetFeaturesAvailable().dualSrcBlend != 0;
caps_.framebufferBlitSupported = true;
caps_.framebufferCopySupported = true;
caps_.preferredDepthBufferFormat = DataFormat::D24_S8;
caps_.framebufferDepthBlitSupported = false; // Can be checked for.
caps_.framebufferDepthCopySupported = true; // Will pretty much always be the case.
caps_.preferredDepthBufferFormat = DataFormat::D24_S8; // TODO: Ask vulkan.
device_ = vulkan->GetDevice();
queue_ = vulkan->GetGraphicsQueue();