When clearing multisampled images for initial states, check format

* Color and Depth images need to be cleared in different ways!
This commit is contained in:
baldurk
2016-05-12 07:53:11 +02:00
parent 68228db199
commit 13858088a2
+1 -1
View File
@@ -1810,7 +1810,7 @@ void WrappedVulkan::Apply_InitialState(WrappedVkRes *live, VulkanResourceManager
if(m_CreationInfo.m_Image[id].samples != VK_SAMPLE_COUNT_1_BIT)
{
initial.resource = NULL;
initial.num = eInitialContents_ClearColorImage;
initial.num = IsDepthStencilFormat(m_ImageLayouts[id].format) ? eInitialContents_ClearDepthStencilImage : eInitialContents_ClearColorImage;
}
// handle any 'created' initial states, without an actual image with contents