Skip to content

Commit 5507b3a

Browse files
committed
Merge pull request godotengine#107451 from NetroScript/fix-vrs-attachment
Fix the VRS attachment being incorrectly added to `color_attachments`
2 parents f7a3ea7 + 66d6870 commit 5507b3a

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)