From de66d503f7d8667f5b1d035060f79d09dcd4a83c Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Thu, 11 Mar 2021 20:45:39 +0100 Subject: [PATCH] st/nine: Enable multisampling also without depth buffer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found with wine tests. Signed-off-by: Axel Davy Acked-by: Timur Kristóf Part-of: --- src/gallium/frontends/nine/nine_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/nine/nine_state.c b/src/gallium/frontends/nine/nine_state.c index 1c61ed85c2e..1833725362d 100644 --- a/src/gallium/frontends/nine/nine_state.c +++ b/src/gallium/frontends/nine/nine_state.c @@ -346,7 +346,7 @@ static inline DWORD check_multisample(struct NineDevice9 *device) { DWORD *rs = device->context.rs; - DWORD new_value = (rs[D3DRS_ZENABLE] || rs[D3DRS_STENCILENABLE]) && + DWORD new_value = device->context.rt[0] && device->context.rt[0]->desc.MultiSampleType >= 1 && rs[D3DRS_MULTISAMPLEANTIALIAS]; if (rs[NINED3DRS_MULTISAMPLE] != new_value) {