Don't refer directly to g_Config.iMultiSampleLevel, it can contain unsupported modes.

This commit is contained in:
Henrik Rydgård committed 2022-12-14 16:43:37 +01:00
1 parent 41e5b1e95a
commit 11366a2ded
11 files changed
+55 -23

No files matched your search

@@ -48,6 +48,12 @@ bool VKRGraphicsPipeline::Create(VulkanContext *vulkan, VkRenderPass compatibleR
return false;
}
if (!compatibleRenderPass) {
ERROR_LOG(G3D, "Failed creating graphics pipeline - compatible render pass was null");
// We're kinda screwed here?
return false;
}
uint32_t stageCount = 2;
VkPipelineShaderStageCreateInfo ss[3]{};
ss[0].sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO;