diff --git a/src/Refresh_Driver_Vulkan.c b/src/Refresh_Driver_Vulkan.c index 139720f..8c95633 100644 --- a/src/Refresh_Driver_Vulkan.c +++ b/src/Refresh_Driver_Vulkan.c @@ -7448,9 +7448,12 @@ static VkFramebuffer VULKAN_INTERNAL_FetchFramebuffer( renderTarget->view ); - hash.colorMultiSampleAttachmentViews[i] = ( - renderTarget->multisampleTexture->view - ); + if (renderTarget->multisampleTexture != NULL) + { + hash.colorMultiSampleAttachmentViews[i] = ( + renderTarget->multisampleTexture->view + ); + } } if (depthStencilAttachmentInfo == NULL) @@ -7496,7 +7499,7 @@ static VkFramebuffer VULKAN_INTERNAL_FetchFramebuffer( attachmentCount += 1; - if (renderTarget->multisampleCount > VK_SAMPLE_COUNT_1_BIT) + if (renderTarget->multisampleTexture != NULL) { imageViewAttachments[attachmentCount] = renderTarget->multisampleTexture->view;