fix null reference
continuous-integration/drone/push Build is passing Details

pull/14/head
cosmonaut 2022-02-24 12:38:18 -08:00
parent 3fcc940586
commit 2db60e5ab0
1 changed files with 7 additions and 4 deletions

View File

@ -7448,9 +7448,12 @@ static VkFramebuffer VULKAN_INTERNAL_FetchFramebuffer(
renderTarget->view renderTarget->view
); );
hash.colorMultiSampleAttachmentViews[i] = ( if (renderTarget->multisampleTexture != NULL)
renderTarget->multisampleTexture->view {
); hash.colorMultiSampleAttachmentViews[i] = (
renderTarget->multisampleTexture->view
);
}
} }
if (depthStencilAttachmentInfo == NULL) if (depthStencilAttachmentInfo == NULL)
@ -7496,7 +7499,7 @@ static VkFramebuffer VULKAN_INTERNAL_FetchFramebuffer(
attachmentCount += 1; attachmentCount += 1;
if (renderTarget->multisampleCount > VK_SAMPLE_COUNT_1_BIT) if (renderTarget->multisampleTexture != NULL)
{ {
imageViewAttachments[attachmentCount] = imageViewAttachments[attachmentCount] =
renderTarget->multisampleTexture->view; renderTarget->multisampleTexture->view;