renderArea NULL inputs

main
cosmonaut 2022-03-06 22:33:12 -08:00
parent b5b0f35b50
commit cf2d8473a1
2 changed files with 3 additions and 7 deletions

@ -1 +1 @@
Subproject commit 5fe9dd8587b05ac2b766a0218a33667aed4c113d
Subproject commit 848db820a6de3437f44e8e45f4c274f40bbfae27

View File

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