From 4a587fd7c1c512649320929f5e1fc3d44cc9c979 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Mon, 6 Jun 2022 13:10:17 +1000 Subject: [PATCH] bgfx: Honour antialias flag on textured quad primitives (fixes MT08340). --- src/osd/modules/render/drawbgfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/modules/render/drawbgfx.cpp b/src/osd/modules/render/drawbgfx.cpp index 07570882ec0..1806d749d66 100644 --- a/src/osd/modules/render/drawbgfx.cpp +++ b/src/osd/modules/render/drawbgfx.cpp @@ -605,7 +605,7 @@ void renderer_bgfx::render_textured_quad(render_primitive* prim, bgfx::Transient uint32_t texture_flags = 0U; if (!PRIMFLAG_GET_TEXWRAP(prim->flags)) texture_flags |= BGFX_SAMPLER_U_CLAMP | BGFX_SAMPLER_V_CLAMP; - if (video_config.filter == 0) + if (!PRIMFLAG_GET_ANTIALIAS(prim->flags)) texture_flags |= BGFX_SAMPLER_MIN_POINT | BGFX_SAMPLER_MAG_POINT | BGFX_SAMPLER_MIP_POINT; const bool is_screen = PRIMFLAG_GET_SCREENTEX(prim->flags);