SDL2: use SDL_GetSystemRAM() to get total RAM
This commit is contained in:
1 parent
9b26f1fdcb
commit
3c8bdd7862
1 file changed
+6
@@ -2687,7 +2687,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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user