diff options
author | gdkchan <gab.dark.100@gmail.com> | 2022-05-01 11:12:34 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-01 11:12:34 -0300 |
commit | 9eb5b7a10de596f9817859b6f383968a54899924 (patch) | |
tree | f4eff4ea183abeba016f72ed08c060a6915eb7f9 | |
parent | d64594ec7476782a4254502dd0e36b8f1f49e381 (diff) |
Restrict cases where vertex buffer size from index buffer type is used (#3304)1.1.108
-rw-r--r-- | Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs b/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs index c9a18f14..3bc15a31 100644 --- a/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs +++ b/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs @@ -928,7 +928,7 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed size = endAddress.Pack() - address + 1; - if (stride > 0 && indexTypeSmall) + if (stride > 0 && indexTypeSmall && _drawState.DrawIndexed && !instanced) { // If the index type is a small integer type, then we might be still able // to reduce the vertex buffer size based on the maximum possible index value. |