3DS - Avoid redundant code

I love C's syntax so much
This commit is contained in:
Clownacy 2020-10-13 21:35:36 +01:00
parent 2601a2c4e7
commit 36f9fb6fec

View file

@ -180,7 +180,7 @@ RenderBackend_Surface* RenderBackend_CreateSurface(size_t width, size_t height,
memset(&surface->texture, 0, sizeof(surface->texture)); 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); C3D_TexSetFilter(&surface->texture, GPU_NEAREST, GPU_NEAREST);