diff --git a/src/Nazara/Graphics/DebugDrawPipelinePass.cpp b/src/Nazara/Graphics/DebugDrawPipelinePass.cpp index f9dc471ea..75292f729 100644 --- a/src/Nazara/Graphics/DebugDrawPipelinePass.cpp +++ b/src/Nazara/Graphics/DebugDrawPipelinePass.cpp @@ -35,7 +35,7 @@ namespace Nz debugDrawPass.SetDepthStencilInput(inputOuputs.depthStencilInput); if (inputOuputs.depthStencilOutput != InvalidAttachmentIndex) - debugDrawPass.SetDepthStencilOutput(inputOuputs.depthStencilInput); + debugDrawPass.SetDepthStencilOutput(inputOuputs.depthStencilOutput); debugDrawPass.SetExecutionCallback([&] { diff --git a/src/Nazara/Graphics/Graphics.cpp b/src/Nazara/Graphics/Graphics.cpp index 980bba5af..37d888166 100644 --- a/src/Nazara/Graphics/Graphics.cpp +++ b/src/Nazara/Graphics/Graphics.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -469,6 +470,7 @@ namespace Nz void Graphics::RegisterPipelinePasses() { m_pipelinePassRegistry.RegisterPass("Depth", {}, {}); + m_pipelinePassRegistry.RegisterPass("DebugDraw", { "Input" }, { "Output" }); m_pipelinePassRegistry.RegisterPass("Forward", {}, { "Output" }); m_pipelinePassRegistry.RegisterPass("PostProcess", { "Input" }, { "Output" }); }