hack: don't attempt to compile shaders with errors

This commit is contained in:
Samuliak 2024-08-28 20:09:45 +02:00
parent a6c8d83436
commit bbed00751f
3 changed files with 17 additions and 0 deletions

View file

@ -350,6 +350,12 @@ MTL::RenderPipelineState* MetalPipelineCache::GetRenderPipelineState(const Latte
auto mtlVertexShader = static_cast<RendererShaderMtl*>(vertexShader->shader);
auto mtlPixelShader = static_cast<RendererShaderMtl*>(pixelShader->shader);
mtlVertexShader->CompileVertexFunction();
// HACK
if (!mtlVertexShader->GetFunction())
{
debug_printf("no vertex function, skipping draw\n");
return nullptr;
}
mtlPixelShader->CompileFragmentFunction(activeFBO);
// Render pipeline state