Load Vulkan dynamically. Fix Android build (though - Vulkan is not working on Android yet)

This commit is contained in:
Henrik Rydgard committed 2016-03-20 19:30:11 +01:00
1 parent 5a72564583
commit 2481714a8e
21 files changed
+733 -171

No files matched your search

+3 -3
View File
@@ -75,7 +75,7 @@ extern int g_iNumVideos;
SamplerCache::~SamplerCache() {
for (auto iter : cache_) {
vulkan_->QueueDelete(iter.second);
vulkan_->Delete().QueueDeleteSampler(iter.second);
}
}
@@ -848,8 +848,8 @@ void TextureCacheVulkan::SetTextureFramebuffer(TexCacheEntry *entry, VirtualFram
void TextureCacheVulkan::ApplyTexture(VkImageView &imageView, VkSampler &sampler) {
if (nextTexture_ == nullptr) {
imageView = nullptr;
sampler = nullptr;
imageView = VK_NULL_HANDLE;
sampler = VK_NULL_HANDLE;
return;
}
VkCommandBuffer cmd = nullptr;