Browse Source

Fix the VRS attachment being incorrectly added to color_attachments

NetroScript 2 months ago
parent
commit
66d68707d3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      servers/rendering/rendering_device.cpp

+ 2 - 0
servers/rendering/rendering_device.cpp

@@ -2907,6 +2907,8 @@ RID RenderingDevice::framebuffer_create(const Vector<RID> &p_texture_attachments
 
 		if (texture && texture->usage_flags & TEXTURE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT) {
 			pass.depth_attachment = i;
+		} else if (texture && texture->usage_flags & TEXTURE_USAGE_VRS_ATTACHMENT_BIT) {
+			// Prevent the VRS attachment from being added to the color_attachments.
 		} else {
 			if (texture && texture->is_resolve_buffer) {
 				pass.resolve_attachments.push_back(i);