Fixed: Detecting video mem on ATI cards
--HG-- branch : develop
This commit is contained in:
parent
106f18a8c8
commit
8febcb1f60
1 changed files with 4 additions and 4 deletions
|
@ -1195,11 +1195,11 @@ sint CDriverGL::getTotalVideoMemory() const
|
|||
|
||||
if (_Extensions.ATIMeminfo)
|
||||
{
|
||||
GLint memoryInKiB = 0;
|
||||
glGetIntegerv(GL_TEXTURE_FREE_MEMORY_ATI, &memoryInKiB);
|
||||
GLint params[4];
|
||||
glGetIntegerv(GL_TEXTURE_FREE_MEMORY_ATI, params);
|
||||
|
||||
nlinfo("3D: GL_TEXTURE_FREE_MEMORY_ATI returned %d KiB", memoryInKiB);
|
||||
return memoryInKiB;
|
||||
nlinfo("3D: GL_TEXTURE_FREE_MEMORY_ATI returned %d KiB", params[0]);
|
||||
return params[0];
|
||||
}
|
||||
|
||||
#if defined(NL_OS_WINDOWS)
|
||||
|
|
Loading…
Reference in a new issue