Skip to content

Commit

Permalink
fix legacy pipeline viewport (#17875)
Browse files Browse the repository at this point in the history
  • Loading branch information
star-e authored Nov 18, 2024
1 parent 9f61f49 commit 619c398
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions native/cocos/renderer/frame-graph/DevicePass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,8 @@ void DevicePass::begin(gfx::CommandBuffer *cmdBuff) {
_fbo.createTransient();

cmdBuff->beginRenderPass(_renderPass.get(), _fbo.get(), _scissor, clearColors.data(), clearDepth, clearStencil);
cmdBuff->setViewport(_viewport);
cmdBuff->setScissor(_scissor);
_curViewport = _viewport;
_curScissor = _scissor;
}
Expand Down

0 comments on commit 619c398

Please sign in to comment.