mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 20:03:41 +01:00
fix: viewport crash and viewport net5 perf
This commit is contained in:
parent
d252c7fb0a
commit
d3db28703b
2 changed files with 4 additions and 1 deletions
|
|
@ -329,6 +329,9 @@ namespace Dalamud.Interface.Internal
|
|||
|
||||
private IntPtr PresentDetour(IntPtr swapChain, uint syncInterval, uint presentFlags)
|
||||
{
|
||||
if (this.scene != null && swapChain != this.scene.SwapChain.NativePointer)
|
||||
return this.presentHook.Original(swapChain, syncInterval, presentFlags);
|
||||
|
||||
if (this.scene == null)
|
||||
{
|
||||
this.scene = new RawDX11Scene(swapChain);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue