Browse Source

Merge pull request #81333 from dalexeev/fix-rd-pcbs-attachments-setter

Fix `RDPipelineColorBlendState.attachments` setter
Rémi Verschelde 2 years ago
parent
commit
698df41dac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      servers/rendering/rendering_device_binds.h

+ 1 - 1
servers/rendering/rendering_device_binds.h

@@ -696,7 +696,7 @@ public:
 	RD_SETGET(Color, blend_constant)
 
 	void set_attachments(const TypedArray<RDPipelineColorBlendStateAttachment> &p_attachments) {
-		attachments.push_back(p_attachments);
+		attachments = p_attachments;
 	}
 
 	TypedArray<RDPipelineColorBlendStateAttachment> get_attachments() const {