diff --git a/native/cocos/renderer/frame-graph/DevicePass.cpp b/native/cocos/renderer/frame-graph/DevicePass.cpp index 4c538a108e5..874ea5119fe 100644 --- a/native/cocos/renderer/frame-graph/DevicePass.cpp +++ b/native/cocos/renderer/frame-graph/DevicePass.cpp @@ -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; }