Skip to content

Commit

Permalink
fix legacy pipeline viewport (cocos#17875)
Browse files Browse the repository at this point in the history
  • Loading branch information
star-e authored and qiuguohua committed Nov 26, 2024
1 parent 42bbf76 commit c9078b4
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 c9078b4

Please sign in to comment.