Skip to content

Commit

Permalink
don't override present if we didn't actually find anything
Browse files Browse the repository at this point in the history
  • Loading branch information
goaaats committed Jul 6, 2024
1 parent 934fc6c commit a8a3360
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dalamud/Game/Internal/DXGI/SwapChainVtableResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,12 @@ protected override unsafe void Setup64Bit(ISigScanner sig)
fileInfo.FileVersion ?? "Unknown",
reShadeDxgiPresent.ToString("X"));

this.Present = reShadeDxgiPresent;
this.IsReshade = true;
if (reShadeDxgiPresent != IntPtr.Zero)
{
this.Present = reShadeDxgiPresent;
this.IsReshade = true;
}

break;
}
catch (Exception e)
Expand Down

0 comments on commit a8a3360

Please sign in to comment.