Browse Source

Fixed build

Sam Lantinga 1 year ago
parent
commit
effc16954f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/video/n3ds/SDL_n3dsvideo.c

+ 1 - 2
src/video/n3ds/SDL_n3dsvideo.c

@@ -157,8 +157,7 @@ AddN3DSDisplay(gfxScreen_t screen)
 
     modedata = SDL_malloc(sizeof(ModeDriverData));
     if (!modedata) {
-        SDL_OutOfMemory();
-        return;
+        return SDL_OutOfMemory();
     }
 
     mode.w = (screen == GFX_TOP) ? GSP_SCREEN_HEIGHT_TOP : GSP_SCREEN_HEIGHT_BOTTOM;