3DS - Avoid redundant code
I love C's syntax so much
This commit is contained in:
parent
2601a2c4e7
commit
36f9fb6fec
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue