From cf2d8473a17ed1569d148c1c8906a7711cc83064 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Sun, 6 Mar 2022 22:33:12 -0800 Subject: [PATCH] renderArea NULL inputs --- lib/RefreshCS | 2 +- src/Graphics/CommandBuffer.cs | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) 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