diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index 095d856c4..332f156f2 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -2696,7 +2696,13 @@ size_t I_GetFreeMem(size_t *total) #else // Guess 48 MB. if (total) + { +#if SDL_VERSION_ATLEAST(2,0,1) + *total = SDL_GetSystemRAM(); +#else *total = 48<<20; +#endif + } return 48<<20; #endif }