renderArea NULL inputs
parent
b5b0f35b50
commit
cf2d8473a1
|
@ -1 +1 @@
|
||||||
Subproject commit 5fe9dd8587b05ac2b766a0218a33667aed4c113d
|
Subproject commit 848db820a6de3437f44e8e45f4c274f40bbfae27
|
|
@ -52,14 +52,12 @@ namespace MoonWorks.Graphics
|
||||||
refreshColorAttachmentInfos[i] = colorAttachmentInfos[i].ToRefresh();
|
refreshColorAttachmentInfos[i] = colorAttachmentInfos[i].ToRefresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
Rect renderArea = new Rect((int) colorAttachmentInfos[0].Texture.Width, (int) colorAttachmentInfos[0].Texture.Height);
|
|
||||||
|
|
||||||
fixed (Refresh.ColorAttachmentInfo* pColorAttachmentInfos = refreshColorAttachmentInfos)
|
fixed (Refresh.ColorAttachmentInfo* pColorAttachmentInfos = refreshColorAttachmentInfos)
|
||||||
{
|
{
|
||||||
Refresh.Refresh_BeginRenderPass(
|
Refresh.Refresh_BeginRenderPass(
|
||||||
Device.Handle,
|
Device.Handle,
|
||||||
Handle,
|
Handle,
|
||||||
renderArea.ToRefresh(),
|
IntPtr.Zero,
|
||||||
(IntPtr) pColorAttachmentInfos,
|
(IntPtr) pColorAttachmentInfos,
|
||||||
(uint) colorAttachmentInfos.Length,
|
(uint) colorAttachmentInfos.Length,
|
||||||
IntPtr.Zero
|
IntPtr.Zero
|
||||||
|
@ -102,14 +100,12 @@ namespace MoonWorks.Graphics
|
||||||
|
|
||||||
var refreshDepthStencilAttachmentInfo = depthStencilAttachmentInfo.ToRefresh();
|
var refreshDepthStencilAttachmentInfo = depthStencilAttachmentInfo.ToRefresh();
|
||||||
|
|
||||||
Rect renderArea = new Rect((int) colorAttachmentInfos[0].Texture.Width, (int) colorAttachmentInfos[0].Texture.Height);
|
|
||||||
|
|
||||||
fixed (Refresh.ColorAttachmentInfo* pColorAttachmentInfos = refreshColorAttachmentInfos)
|
fixed (Refresh.ColorAttachmentInfo* pColorAttachmentInfos = refreshColorAttachmentInfos)
|
||||||
{
|
{
|
||||||
Refresh.Refresh_BeginRenderPass(
|
Refresh.Refresh_BeginRenderPass(
|
||||||
Device.Handle,
|
Device.Handle,
|
||||||
Handle,
|
Handle,
|
||||||
renderArea.ToRefresh(),
|
IntPtr.Zero,
|
||||||
pColorAttachmentInfos,
|
pColorAttachmentInfos,
|
||||||
(uint) colorAttachmentInfos.Length,
|
(uint) colorAttachmentInfos.Length,
|
||||||
&refreshDepthStencilAttachmentInfo
|
&refreshDepthStencilAttachmentInfo
|
||||||
|
|
Loading…
Reference in New Issue