cleanup SwapChainVtableResolver.cs

This commit is contained in:
goaaats 2021-10-08 02:52:38 +02:00
parent 4c9f6e0d6f
commit ca882386ea
No known key found for this signature in database
GPG key ID: F18F057873895461
2 changed files with 3 additions and 7 deletions

View file

@ -1,16 +1,10 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using Dalamud.Game.Internal.DXGI.Definitions;
using Serilog;
using SharpDX.Direct3D;
using SharpDX.Direct3D11;
using SharpDX.DXGI;
using Device = SharpDX.Direct3D11.Device;
namespace Dalamud.Game.Internal.DXGI
{
@ -59,6 +53,7 @@ namespace Dalamud.Game.Internal.DXGI
this.Present = p;
this.IsReshade = true;
break;
}
catch (Exception ex)
{

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
@ -416,6 +416,7 @@ namespace Dalamud.Interface.Internal
return this.presentHook.Original(swapChain, syncInterval, presentFlags);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private void RenderImGui()
{
// Process information needed by ImGuiHelpers each frame.