Skip to content

Commit 8808d00

Browse files
committed
Add missing clear
1 parent 378e3d7 commit 8808d00

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/java/net/vulkanmod/render/engine/VkCommandEncoder.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,10 @@ public void clearColorAndDepthTextures(GpuTexture colorAttachment, int clearColo
244244
Renderer.clearAttachments(0x4100, x0, y0, width, height);
245245
}
246246
else {
247-
// TODO
248-
// throw new IllegalStateException();
247+
VkGpuTexture gpuTexture = (VkGpuTexture) colorAttachment;
248+
gpuTexture.getFbo(depthAttachment).bind();
249+
250+
Renderer.clearAttachments(0x4100, x0, y0, width, height);
249251
}
250252
}
251253
}

0 commit comments

Comments
 (0)