Skip to content

Commit

Permalink
worldrenderer: gui draworder
Browse files Browse the repository at this point in the history
  • Loading branch information
inanevin committed Jan 25, 2025
1 parent bb4873f commit 4f8c92a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LinaCore/src/Graphics/Renderers/WorldRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,8 @@ namespace Lina
.pushConstant = PushArgument(args),
.clip = Recti(buf->clip.x, buf->clip.y, buf->clip.z, buf->clip.w),
.useScissors = true,
.sortOrder = m_currentLVGDraw3D,
.sortPosition = m_currentLVGDrawEntity->GetPosition(),
.sortOrder = true,
.sortPosition = m_currentLVGDraw3D ? m_currentLVGDrawEntity->GetPosition() : (m_gpuDrawData.worldCamera.GetPosition()),
};

m_forwardPass.AddDrawCall(drawCall);
Expand Down

0 comments on commit 4f8c92a

Please sign in to comment.