mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-01-18 23:42:26 +00:00
Return at least 64MB VRAM in case the detection fails
This commit is contained in:
parent
a35d8c08b6
commit
5f8712902c
1 changed files with 5 additions and 2 deletions
|
@ -276,7 +276,10 @@ int Sys_GetVideoRam() {
|
|||
|
||||
common->Printf("guessing video ram (use +set sys_videoRam to force)\n");
|
||||
|
||||
const SDL_VideoInfo *vi = SDL_GetVideoInfo();
|
||||
Uint32 vram = SDL_GetVideoInfo()->video_mem;
|
||||
|
||||
return vi->video_mem;
|
||||
if (!vram)
|
||||
vram = 64;
|
||||
|
||||
return vram;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue