diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-04-01 01:32:41 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-04-01 01:36:24 +0200 |
commit | e9e671d101d6ca5e0dc19b13e3aba95af65dd5cc (patch) | |
tree | 0bd69b24309bffd7b8a708b876762b43d0524485 /src/video_core/renderer_opengl/gl_device.cpp | |
parent | Merge pull request #8116 from ameerj/nvhost_ctrl_bad_param (diff) | |
download | yuzu-e9e671d101d6ca5e0dc19b13e3aba95af65dd5cc.tar yuzu-e9e671d101d6ca5e0dc19b13e3aba95af65dd5cc.tar.gz yuzu-e9e671d101d6ca5e0dc19b13e3aba95af65dd5cc.tar.bz2 yuzu-e9e671d101d6ca5e0dc19b13e3aba95af65dd5cc.tar.lz yuzu-e9e671d101d6ca5e0dc19b13e3aba95af65dd5cc.tar.xz yuzu-e9e671d101d6ca5e0dc19b13e3aba95af65dd5cc.tar.zst yuzu-e9e671d101d6ca5e0dc19b13e3aba95af65dd5cc.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_device.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_device.cpp b/src/video_core/renderer_opengl/gl_device.cpp index 656dd7eb0..597301eeb 100644 --- a/src/video_core/renderer_opengl/gl_device.cpp +++ b/src/video_core/renderer_opengl/gl_device.cpp @@ -282,7 +282,7 @@ void main() { u64 Device::GetCurrentDedicatedVideoMemory() const { GLint cur_avail_mem_kb = 0; - glGetIntegerv(GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX, &cur_avail_mem_kb); + glGetIntegerv(GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX, &cur_avail_mem_kb); return static_cast<u64>(cur_avail_mem_kb) * 1_KiB; } |