Check for triangle fan support when precompiling pipelines.

This commit is contained in:
Skyth 2024-11-30 12:18:13 +03:00
parent a15daa4150
commit 63b8a1e130

View file

@ -5140,6 +5140,9 @@ static void ModelConsumerThread()
pipelineState.vertexDeclaration = g_vertexDeclarations[reinterpret_cast<XXH64_hash_t>(pipelineState.vertexDeclaration)]; pipelineState.vertexDeclaration = g_vertexDeclarations[reinterpret_cast<XXH64_hash_t>(pipelineState.vertexDeclaration)];
} }
if (!g_triangleFanSupported && pipelineState.primitiveTopology == RenderPrimitiveTopology::TRIANGLE_FAN)
pipelineState.primitiveTopology = RenderPrimitiveTopology::TRIANGLE_LIST;
if (Config::GITextureFiltering == EGITextureFiltering::Bicubic) if (Config::GITextureFiltering == EGITextureFiltering::Bicubic)
pipelineState.specConstants |= SPEC_CONSTANT_BICUBIC_GI_FILTER; pipelineState.specConstants |= SPEC_CONSTANT_BICUBIC_GI_FILTER;