mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-08-30 07:25:05 +00:00
Don’t change Render State if Vertex Function is Invalid
This commit is contained in:
parent
e8d0212ec6
commit
26ea1e6d37
1 changed files with 6 additions and 0 deletions
|
|
@ -449,6 +449,12 @@ namespace Ryujinx.Graphics.Metal
|
||||||
{
|
{
|
||||||
Program prg = (Program)program;
|
Program prg = (Program)program;
|
||||||
|
|
||||||
|
if (prg.VertexFunction == null)
|
||||||
|
{
|
||||||
|
Logger.Error?.PrintMsg(LogClass.Gpu, "Invalid Vertex Function!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_renderEncoderState = new RenderEncoderState(
|
_renderEncoderState = new RenderEncoderState(
|
||||||
prg.VertexFunction,
|
prg.VertexFunction,
|
||||||
prg.FragmentFunction,
|
prg.FragmentFunction,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue