1
1
forked from 0ad/0ad

Removes unused MemorySizeMiB. Refs D2476.

We don't need to account #2145 anymore, since we dropped SDL1. SDL2
doesn't have SDL_GetVideoInfo. We might use OpenGL extensions like
GL_ATI_meminfo, GLX_MESA_query_renderer or GL_NVX_gpu_memory_info.
But they aren't spreaded very well. Also VRAM size isn't so useful for
us, since OpenGL driver can swap memory pages when it needs to.

Patch By: linkmauve
This was SVN commit r23425.
This commit is contained in:
Vladislav Belov 2020-01-20 21:24:09 +00:00
parent 32b52f9f67
commit 421124d486
2 changed files with 2 additions and 17 deletions

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2015 Wildfire Games.
/* Copyright (C) 2020 Wildfire Games.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
@ -88,14 +88,4 @@ std::wstring DriverInfo()
return driverInfo;
}
size_t MemorySizeMiB()
{
// TODO: not implemented, SDL_GetVideoInfo only works on some platforms in SDL 1.2
// and no replacement is available in SDL2, and it can crash with Nvidia Optimus
// see http://trac.wildfiregames.com/ticket/2145
debug_warn(L"MemorySizeMiB not implemented");
return 0;
}
} // namespace gfx

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2013 Wildfire Games.
/* Copyright (C) 2020 Wildfire Games.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
@ -41,11 +41,6 @@ LIB_API std::wstring CardName();
**/
LIB_API std::wstring DriverInfo();
/**
* not implemented
**/
LIB_API size_t MemorySizeMiB();
/**
* (useful for choosing a new video mode)
*