From fd24536eccf30d35a12f7ee0cf5d7b5509eba381 Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Wed, 2 Nov 2022 18:20:32 -0400 Subject: [PATCH] use the texture's sample count in the ColorAttachmentInfo constructors --- src/Graphics/RefreshStructs.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Graphics/RefreshStructs.cs b/src/Graphics/RefreshStructs.cs index d2ccd9a..fbc43d1 100644 --- a/src/Graphics/RefreshStructs.cs +++ b/src/Graphics/RefreshStructs.cs @@ -215,7 +215,7 @@ namespace MoonWorks.Graphics Depth = 0; Layer = 0; Level = 0; - SampleCount = SampleCount.One; + SampleCount = texture.SampleCount; ClearColor = clearColor; LoadOp = LoadOp.Clear; StoreOp = storeOp; @@ -227,7 +227,7 @@ namespace MoonWorks.Graphics Depth = 0; Layer = 0; Level = 0; - SampleCount = SampleCount.One; + SampleCount = texture.SampleCount; ClearColor = Color.White; LoadOp = loadOp; StoreOp = storeOp; -- 2.25.1