mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-23 07:05:45 +00:00
Skip draws with zero vertex count (#5149)
This commit is contained in:
parent
c27e453fd3
commit
232237bf28
1 changed files with 2 additions and 2 deletions
|
@ -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