SetViewport now part of RenderCommand

This commit is contained in:
Simon Lübeß
2021-09-21 13:15:43 +02:00
parent 4af61a372f
commit 4debaee7d4
9 changed files with 25 additions and 9 deletions
+2 -2
View File
@@ -109,7 +109,7 @@ namespace GlitchyEditor
_depthTarget.Bind();
_context.BindRenderTargets();
_context.SetViewport(Viewport(0, 0, _renderTarget2D.Width, _renderTarget2D.Height));
RenderCommand.SetViewport(Viewport(0, 0, _renderTarget2D.Width, _renderTarget2D.Height));
_opaqueBlendState.Bind();
@@ -126,7 +126,7 @@ namespace GlitchyEditor
_swapchainDepthBuffer.Bind();
_context.BindRenderTargets();
_context.SetViewport(_context.SwapChain.BackbufferViewport);
RenderCommand.SetViewport(_context.SwapChain.BackbufferViewport);
}
public override void OnEvent(Event event)