Merge pull request #4483 from stenzek/vulkan-gs-uid-assert

Vulkan: Fix assertion triggering when geometry shaders are unsupported
This commit is contained in:
Mat M 2016-12-02 02:41:37 -05:00 committed by GitHub
commit 0e93bad737
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ bool StateTracker::PrecachePipelineUID(const SerializedPipelineUID& uid)
WARN_LOG(VIDEO, "Failed to get vertex shader from cached UID.");
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);
if (pinfo.gs == VK_NULL_HANDLE)