From a669592651c67acbed22bdabf90220742f924110 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Sat, 27 Jan 2024 16:09:16 -0500 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20change=20Render=20State=20if=20?= =?UTF-8?q?Vertex=20Function=20is=20Invalid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Ryujinx.Graphics.Metal/Pipeline.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Ryujinx.Graphics.Metal/Pipeline.cs b/src/Ryujinx.Graphics.Metal/Pipeline.cs index 12b54bee96..4a32136d25 100644 --- a/src/Ryujinx.Graphics.Metal/Pipeline.cs +++ b/src/Ryujinx.Graphics.Metal/Pipeline.cs @@ -449,6 +449,12 @@ namespace Ryujinx.Graphics.Metal { Program prg = (Program)program; + if (prg.VertexFunction == null) + { + Logger.Error?.PrintMsg(LogClass.Gpu, "Invalid Vertex Function!"); + return; + } + _renderEncoderState = new RenderEncoderState( prg.VertexFunction, prg.FragmentFunction,