From 580aec949cb5221b1cdc02b3f04f11537a09c181 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 31 Jul 2020 22:21:33 -0700 Subject: [PATCH] 3DS: Fix garbage on borders of scaled screens --- CHANGES | 1 + src/platform/3ds/main.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index 90ae34920..49f4f8099 100644 --- a/CHANGES +++ b/CHANGES @@ -34,6 +34,7 @@ Emulation fixes: - SM83: Emulate HALT bug - SM83: Fix flags on little endian PowerPC Other fixes: + - 3DS: Fix garbage on borders of scaled screens - All: Improve export headers (fixes mgba.io/i/1738) - All: Correct format strings for some numbers on Windows (fixes mgba.io/i/1794) - All: Correct more format strings on Windows (fixes mgba.io/i/1817) diff --git a/src/platform/3ds/main.c b/src/platform/3ds/main.c index 6ffe46da2..3b5357ba8 100644 --- a/src/platform/3ds/main.c +++ b/src/platform/3ds/main.c @@ -859,6 +859,7 @@ int main() { return 1; } + C3D_TexSetWrap(&upscaleBufferTex, GPU_CLAMP_TO_EDGE, GPU_CLAMP_TO_EDGE); C3D_TexSetFilter(&upscaleBufferTex, GPU_LINEAR, GPU_LINEAR); int i;