mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-11-28 11:50:50 +01:00
Don’t change Render State if Vertex Function is Invalid
This commit is contained in:
parent
eb5fa2b546
commit
a669592651
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user