Restrict cases where vertex buffer size from index buffer type is used (#3304)

This commit is contained in:
gdkchan 2022-05-01 11:12:34 -03:00 committed by GitHub
parent d64594ec74
commit 9eb5b7a10d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.