ref: 36f9fb6fec62e7db532a7eaffedf03e7b1855c38
parent: 2601a2c4e72436bc8954046014e00a6f9b38b1f5
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Oct 13 17:35:36 EDT 2020
3DS - Avoid redundant code I love C's syntax so much
--- a/src/Backends/Rendering/3DS.cpp
+++ b/src/Backends/Rendering/3DS.cpp
@@ -180,7 +180,7 @@
memset(&surface->texture, 0, sizeof(surface->texture));
- if (render_target ? C3D_TexInitVRAM(&surface->texture, NextPowerOfTwo(width), NextPowerOfTwo(height), GPU_RGBA8) : C3D_TexInit(&surface->texture, NextPowerOfTwo(width), NextPowerOfTwo(height), GPU_RGBA8))
+ if ((render_target ? C3D_TexInitVRAM : C3D_TexInit)(&surface->texture, NextPowerOfTwo(width), NextPowerOfTwo(height), GPU_RGBA8))
{
C3D_TexSetFilter(&surface->texture, GPU_NEAREST, GPU_NEAREST);