Skip to content

Commit 66d6870

Browse files
committed
Fix the VRS attachment being incorrectly added to color_attachments
1 parent 03bd8ba commit 66d6870

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

servers/rendering/rendering_device.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2907,6 +2907,8 @@ RID RenderingDevice::framebuffer_create(const Vector<RID> &p_texture_attachments
29072907

29082908
if (texture && texture->usage_flags & TEXTURE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT) {
29092909
pass.depth_attachment = i;
2910+
} else if (texture && texture->usage_flags & TEXTURE_USAGE_VRS_ATTACHMENT_BIT) {
2911+
// Prevent the VRS attachment from being added to the color_attachments.
29102912
} else {
29112913
if (texture && texture->is_resolve_buffer) {
29122914
pass.resolve_attachments.push_back(i);

0 commit comments

Comments
 (0)