diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-05-02 08:00:24 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-05-02 08:00:24 +0800 |
commit | f2a488a4f907deba3624288d170e6e4d77ef63dd (patch) | |
tree | 8e7f2264222aa10fa0b1d83c9e6fb38e2ec5beb1 | |
parent | c78862a509772cbc5443963e2483d19a7cd22b49 (diff) |
Correct the GL function used for detecting VRAM
-rw-r--r-- | indra/llwindow/llwindowsdl.cpp | 6 |
1 files 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 |