Fix image layout for vulkan text atlas

This commit is contained in:
baldurk
2018-12-14 15:38:21 +00:00
parent 2cf5129e71
commit 0668bbbc07
+1 -1
View File
@@ -515,7 +515,7 @@ VulkanTextRenderer::VulkanTextRenderer(WrappedVulkan *driver)
m_TextStringUBO.FillDescriptor(bufInfo[2]);
VkDescriptorImageInfo atlasImInfo;
atlasImInfo.imageLayout = VK_IMAGE_LAYOUT_GENERAL;
atlasImInfo.imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;
atlasImInfo.imageView = Unwrap(m_TextAtlasView);
atlasImInfo.sampler = Unwrap(m_LinearSampler);