diff --git a/lib/MoonWorks b/lib/MoonWorks index 9195e44..69d2c9c 160000 --- a/lib/MoonWorks +++ b/lib/MoonWorks @@ -1 +1 @@ -Subproject commit 9195e445b2473564563c917df611fcca4ea161d1 +Subproject commit 69d2c9cc31450847830be3d8d945eb0a28147a27 diff --git a/src/MoonWorksDearImGuiScaffoldGame.cs b/src/MoonWorksDearImGuiScaffoldGame.cs index 0aa748f..16ab7ac 100644 --- a/src/MoonWorksDearImGuiScaffoldGame.cs +++ b/src/MoonWorksDearImGuiScaffoldGame.cs @@ -5,6 +5,7 @@ using ImGuiNET; using System.IO; using MoonWorks.Math.Float; using System; +using System.Runtime.InteropServices; namespace MoonWorksDearImGuiScaffold; @@ -162,9 +163,7 @@ class MoonWorksDearImGuiScaffoldGame : Game RenderCommandLists(commandBuffer, swapchainTexture, drawDataPtr, io); } - var fence = GraphicsDevice.SubmitAndAcquireFence(commandBuffer); - GraphicsDevice.WaitForFences(fence); - GraphicsDevice.ReleaseFence(fence); + GraphicsDevice.Submit(commandBuffer); } protected override void Destroy() diff --git a/src/Program.cs b/src/Program.cs index b3d0a18..3e3ab76 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -32,7 +32,7 @@ class Program MoonWorksDearImGuiScaffoldGame game = new MoonWorksDearImGuiScaffoldGame( windowCreateInfo, frameLimiterSettings, - [Backend.D3D11, Backend.Vulkan], + [Backend.Vulkan, Backend.D3D11], debugMode );