From f2a488a4f907deba3624288d170e6e4d77ef63dd Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Thu, 2 May 2024 08:00:24 +0800 Subject: Correct the GL function used for detecting VRAM --- indra/llwindow/llwindowsdl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/indra/llwindow/llwindowsdl.cpp b/indra/llwindow/llwindowsdl.cpp index ed019ad82c..e38186ff39 100644 --- a/indra/llwindow/llwindowsdl.cpp +++ b/indra/llwindow/llwindowsdl.cpp @@ -691,10 +691,10 @@ BOOL LLWindowSDL::createContext(int x, int y, int width, int height, int bits, B unsigned int vram_megabytes = 0; queryInteger(GLX_RENDERER_VIDEO_MEMORY_MESA, &vram_megabytes); if (!vram_megabytes) - queryInteger(GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX, - &vram_megabytes); + glGetIntegerv(GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX, + (int *)&vram_megabytes); if (!vram_megabytes) - queryInteger(GL_VBO_FREE_MEMORY_ATI, &vram_megabytes); + glGetIntegerv(GL_VBO_FREE_MEMORY_ATI, (int *)&vram_megabytes); gGLManager.mVRAM = vram_megabytes; # endif // LL_DARWIN -- cgit v1.2.3