mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-03-15 09:04:48 +00:00
fix nullref when switching vsync mode with turbo mode
This commit is contained in:
parent
c410474d83
commit
90f2b089eb
1 changed files with 8 additions and 1 deletions
|
@ -1065,7 +1065,14 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
|
|||
/// </summary>
|
||||
private void UpdateIndexBufferState()
|
||||
{
|
||||
IndexBufferState indexBuffer = _state.State.IndexBufferState;
|
||||
IndexBufferState? indexBufferNullable = _state?.State.IndexBufferState;
|
||||
|
||||
if (!indexBufferNullable.HasValue)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
IndexBufferState indexBuffer = indexBufferNullable.Value;
|
||||
|
||||
if (_drawState.IndexCount == 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue