Merge pull request #476 from lmcintyre/viewport-fix

This commit is contained in:
goaaats 2021-08-11 18:12:18 +02:00 committed by GitHub
commit c079ca60e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -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);