From 92ab8328b19a3a75deedc9a088d609dd77b72b97 Mon Sep 17 00:00:00 2001 From: Nitrus Date: Tue, 20 Nov 2018 18:59:17 +0100 Subject: 3DS: Clear render target on each frame ...in order to clear framebuffer artifacts in case the screen is not stretched. --- backends/platform/3ds/osystem-graphics.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backends/platform/3ds/osystem-graphics.cpp') diff --git a/backends/platform/3ds/osystem-graphics.cpp b/backends/platform/3ds/osystem-graphics.cpp index 777272e1d9..ebc1b8c7ed 100644 --- a/backends/platform/3ds/osystem-graphics.cpp +++ b/backends/platform/3ds/osystem-graphics.cpp @@ -273,6 +273,7 @@ void OSystem_3DS::updateScreen() { C3D_FrameBegin(C3D_FRAME_SYNCDRAW); // Render top screen + C3D_RenderTargetClear(_renderTargetTop, C3D_CLEAR_ALL, 0x00000000, 0); C3D_FrameDrawOn(_renderTargetTop); if (config.screen == kScreenTop || config.screen == kScreenBoth) { C3D_FVUnifMtx4x4(GPU_VERTEX_SHADER, _projectionLocation, &_projectionTop); @@ -290,6 +291,7 @@ void OSystem_3DS::updateScreen() { } // Render bottom screen + C3D_RenderTargetClear(_renderTargetBottom, C3D_CLEAR_ALL, 0x00000000, 0); C3D_FrameDrawOn(_renderTargetBottom); if (config.screen == kScreenBottom || config.screen == kScreenBoth) { C3D_FVUnifMtx4x4(GPU_VERTEX_SHADER, _projectionLocation, &_projectionBottom); -- cgit v1.2.3