mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Vulkan: Fix assertion triggering when geometry shaders are unsupported
Happened when loading the pipeline UID cache.
This commit is contained in:
parent
20676a6640
commit
7b1966a680
@ -172,7 +172,7 @@ bool StateTracker::PrecachePipelineUID(const SerializedPipelineUID& uid)
|
|||||||
WARN_LOG(VIDEO, "Failed to get vertex shader from cached UID.");
|
WARN_LOG(VIDEO, "Failed to get vertex shader from cached UID.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!uid.gs_uid.GetUidData()->IsPassthrough())
|
if (g_vulkan_context->SupportsGeometryShaders() && !uid.gs_uid.GetUidData()->IsPassthrough())
|
||||||
{
|
{
|
||||||
pinfo.gs = g_object_cache->GetGeometryShaderForUid(uid.gs_uid);
|
pinfo.gs = g_object_cache->GetGeometryShaderForUid(uid.gs_uid);
|
||||||
if (pinfo.gs == VK_NULL_HANDLE)
|
if (pinfo.gs == VK_NULL_HANDLE)
|
||||||
|
Loading…
Reference in New Issue
Block a user