mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Don't allow Apply_InitialState to clear a compressed image
This commit is contained in:
@@ -1809,6 +1809,12 @@ void WrappedVulkan::Apply_InitialState(WrappedVkRes *live, VulkanResourceManager
|
||||
RDCASSERT(initial.num != eInitialContents_Sparse);
|
||||
if(initial.num == eInitialContents_ClearColorImage)
|
||||
{
|
||||
if(IsBlockFormat(m_ImageLayouts[id].format))
|
||||
{
|
||||
RDCWARN("Trying to clear a compressed image %u - should have initial states or be stripped.", id);
|
||||
return;
|
||||
}
|
||||
|
||||
VkCommandBuffer cmd = GetNextCmd();
|
||||
|
||||
vkr = ObjDisp(cmd)->BeginCommandBuffer(Unwrap(cmd), &beginInfo);
|
||||
|
||||
Reference in New Issue
Block a user