ref: 2601a2c4e72436bc8954046014e00a6f9b38b1f5
parent: 9c24ab93380f6c2acb4219d422cdf81ddae7684f
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Oct 13 17:34:25 EDT 2020
3DS - Fix garbage data showing on Loading screen
--- a/src/Backends/Rendering/3DS.cpp
+++ b/src/Backends/Rendering/3DS.cpp
@@ -193,9 +193,15 @@
surface->render_target = C3D_RenderTargetCreateFromTex(&surface->texture, GPU_TEXFACE_2D, 0, -1);
if (surface->render_target != NULL)
+ {
+ C2D_TargetClear(surface->render_target, 0xFF000000);
+
return surface;
+ }
else
+ {
Backend_PrintError("C3D_RenderTargetCreateFromTex failed in RenderBackend_CreateSurface");
+ }
}
C3D_TexDelete(&surface->texture);