Skip to content

Commit

Permalink
Ensure scissor state is set to the correct value prior to a buffer cl…
Browse files Browse the repository at this point in the history
…ear (#1632)
  • Loading branch information
rh101 authored Jan 25, 2024
1 parent da99006 commit 6543931
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/renderer/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,8 @@ void Renderer::clear(ClearFlag flags, const Color4F& color, float depth, unsigne
if (bitmask::any(flags, ClearFlag::STENCIL))
descriptor.clearStencilValue = stencil;

_commandBuffer->setScissorRect(_scissorState.isEnabled, _scissorState.rect.x, _scissorState.rect.y,
_scissorState.rect.width, _scissorState.rect.height);
_commandBuffer->beginRenderPass(_currentRT, descriptor);
_commandBuffer->endRenderPass();
};
Expand Down

0 comments on commit 6543931

Please sign in to comment.