From 63b8a1e1306a1286846768c53f74383136c790e0 Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Sat, 30 Nov 2024 12:18:13 +0300 Subject: [PATCH] Check for triangle fan support when precompiling pipelines. --- UnleashedRecomp/gpu/video.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UnleashedRecomp/gpu/video.cpp b/UnleashedRecomp/gpu/video.cpp index 36c5dde..0a44b7e 100644 --- a/UnleashedRecomp/gpu/video.cpp +++ b/UnleashedRecomp/gpu/video.cpp @@ -5140,6 +5140,9 @@ static void ModelConsumerThread() pipelineState.vertexDeclaration = g_vertexDeclarations[reinterpret_cast(pipelineState.vertexDeclaration)]; } + if (!g_triangleFanSupported && pipelineState.primitiveTopology == RenderPrimitiveTopology::TRIANGLE_FAN) + pipelineState.primitiveTopology = RenderPrimitiveTopology::TRIANGLE_LIST; + if (Config::GITextureFiltering == EGITextureFiltering::Bicubic) pipelineState.specConstants |= SPEC_CONSTANT_BICUBIC_GI_FILTER;