mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 01:25:25 +00:00
Skip draws with zero vertex count (#5149)
This commit is contained in:
parent
c27e453fd3
commit
232237bf28
|
@ -358,7 +358,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
public void Draw(int vertexCount, int instanceCount, int firstVertex, int firstInstance)
|
||||
{
|
||||
if (!_program.IsLinked)
|
||||
if (!_program.IsLinked || vertexCount == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -422,7 +422,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
public void DrawIndexed(int indexCount, int instanceCount, int firstIndex, int firstVertex, int firstInstance)
|
||||
{
|
||||
if (!_program.IsLinked)
|
||||
if (!_program.IsLinked || indexCount == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue