From 944d2c3aa1b4f7a77985ff99c87ac908aaf9bc9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 8 Oct 2021 00:22:34 +0200 Subject: [PATCH] Set texture clamp mode for UI drawing. Fixes #14977, hopefully without breaking anything else.. --- Common/UI/Context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/UI/Context.cpp b/Common/UI/Context.cpp index e94b9e76d9..15b5bc65de 100644 --- a/Common/UI/Context.cpp +++ b/Common/UI/Context.cpp @@ -27,7 +27,7 @@ UIContext::~UIContext() { void UIContext::Init(Draw::DrawContext *thin3d, Draw::Pipeline *uipipe, Draw::Pipeline *uipipenotex, DrawBuffer *uidrawbuffer, DrawBuffer *uidrawbufferTop) { using namespace Draw; draw_ = thin3d; - sampler_ = draw_->CreateSamplerState({ TextureFilter::LINEAR, TextureFilter::LINEAR, TextureFilter::LINEAR }); + sampler_ = draw_->CreateSamplerState({ TextureFilter::LINEAR, TextureFilter::LINEAR, TextureFilter::LINEAR, 0.0, TextureAddressMode::CLAMP_TO_EDGE, TextureAddressMode::CLAMP_TO_EDGE, }); ui_pipeline_ = uipipe; ui_pipeline_notex_ = uipipenotex; uidrawbuffer_ = uidrawbuffer;