fix nullref when switching vsync mode with turbo mode
This commit is contained in:
parent
c410474d83
commit
90f2b089eb
@ -1065,7 +1065,14 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void UpdateIndexBufferState()
|
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)
|
if (_drawState.IndexCount == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user