diff options
-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 |