diff --git a/lib/RefreshCS b/lib/RefreshCS index 5fe9dd85..848db820 160000 --- a/lib/RefreshCS +++ b/lib/RefreshCS @@ -1 +1 @@ -Subproject commit 5fe9dd8587b05ac2b766a0218a33667aed4c113d +Subproject commit 848db820a6de3437f44e8e45f4c274f40bbfae27 diff --git a/src/Graphics/CommandBuffer.cs b/src/Graphics/CommandBuffer.cs index f9a92b06..cc0abe26 100644 --- a/src/Graphics/CommandBuffer.cs +++ b/src/Graphics/CommandBuffer.cs @@ -52,14 +52,12 @@ namespace MoonWorks.Graphics refreshColorAttachmentInfos[i] = colorAttachmentInfos[i].ToRefresh(); } - Rect renderArea = new Rect((int) colorAttachmentInfos[0].Texture.Width, (int) colorAttachmentInfos[0].Texture.Height); - fixed (Refresh.ColorAttachmentInfo* pColorAttachmentInfos = refreshColorAttachmentInfos) { Refresh.Refresh_BeginRenderPass( Device.Handle, Handle, - renderArea.ToRefresh(), + IntPtr.Zero, (IntPtr) pColorAttachmentInfos, (uint) colorAttachmentInfos.Length, IntPtr.Zero @@ -102,14 +100,12 @@ namespace MoonWorks.Graphics var refreshDepthStencilAttachmentInfo = depthStencilAttachmentInfo.ToRefresh(); - Rect renderArea = new Rect((int) colorAttachmentInfos[0].Texture.Width, (int) colorAttachmentInfos[0].Texture.Height); - fixed (Refresh.ColorAttachmentInfo* pColorAttachmentInfos = refreshColorAttachmentInfos) { Refresh.Refresh_BeginRenderPass( Device.Handle, Handle, - renderArea.ToRefresh(), + IntPtr.Zero, pColorAttachmentInfos, (uint) colorAttachmentInfos.Length, &refreshDepthStencilAttachmentInfo