Vulkan: Fall back to geometryShader when fillModeNonSolid unsupported

This commit is contained in:
Connor McLaughlin 2020-07-07 00:59:35 +10:00
parent d1eae288bf
commit 1d4b5e22cb
2 changed files with 3 additions and 3 deletions

View file

@ -460,9 +460,9 @@ bool Context::SelectDeviceFeatures(const VkPhysicalDeviceFeatures* required_feat
VkPhysicalDeviceFeatures available_features; VkPhysicalDeviceFeatures available_features;
vkGetPhysicalDeviceFeatures(m_physical_device, &available_features); vkGetPhysicalDeviceFeatures(m_physical_device, &available_features);
if (!available_features.fillModeNonSolid) if (!available_features.fillModeNonSolid && !available_features.geometryShader)
{ {
Log_ErrorPrintf("fillModeNonSolid feature is required for line drawing."); Log_ErrorPrintf("fillModeNonSolid or geometryShader feature is required for line drawing.");
return false; return false;
} }

View file

@ -620,7 +620,7 @@ bool GPU_HW_Vulkan::CompilePipelines()
} }
} }
if (m_resolution_scale > 1) if (m_resolution_scale > 1 || !g_vulkan_context->GetDeviceFeatures().fillModeNonSolid)
{ {
if (g_vulkan_context->GetDeviceFeatures().geometryShader) if (g_vulkan_context->GetDeviceFeatures().geometryShader)
{ {