BugFix ATI get memory GL_TEXTURE_FREE_MEMORY_ATI

This commit is contained in:
Bruno Herbelin
2022-04-21 18:38:34 +02:00
parent 56b17116e3
commit 9d7f0b22f7

View File

@@ -513,7 +513,9 @@ glm::ivec2 Rendering::getGPUMemoryInformation()
}
// ATI
else if (meminfomode == 2) {
glGetIntegerv( GL_TEXTURE_FREE_MEMORY_ATI, &ret.x );
GLint memInMB[4] = { 0, 0, 0, 0 };
glGetIntegerv( GL_TEXTURE_FREE_MEMORY_ATI, &memInMB[0] );
ret.x = memInMB[3] ;
}
return ret;