delete subindex function (#11667)

* delete subindex function
This commit is contained in:
minggo
2022-06-23 14:53:02 +08:00
committed by GitHub
parent 0077fee553
commit 4b8b032ad8
6 changed files with 15 additions and 13 deletions
@@ -46,7 +46,7 @@ void CCVKFramebuffer::doInit(const FramebufferInfo & /*info*/) {
_gpuFBO->gpuColorViews.resize(_colorTextures.size());
for (size_t i = 0; i < _colorTextures.size(); ++i) {
auto *colorTex = static_cast<CCVKTexture *>(_colorTextures[i]);
auto *colorTex = static_cast<CCVKTexture *>(_colorTextures.at(i));
_gpuFBO->gpuColorViews[i] = colorTex->gpuTextureView();
CCVKDevice::getInstance()->gpuFramebufferHub()->connect(colorTex->gpuTexture(), _gpuFBO);
}