diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-02-14 02:46:24 +0200 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-02-15 19:31:41 +0200 |
commit | a2971d84d5aba0c2dcda9ec8274a5c5b72ccd67c (patch) | |
tree | 0d1f164e96fdd9aecee9bf6ae103fe561629ffd3 /indra/llwindow/llwindowwin32.cpp | |
parent | 17b5bc9403da9608a9ddff3f989644c98bf936a7 (diff) |
Viewer#779 Make RenderMaxVRAMBudget more consistent
Diffstat (limited to 'indra/llwindow/llwindowwin32.cpp')
-rw-r--r-- | indra/llwindow/llwindowwin32.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llwindow/llwindowwin32.cpp b/indra/llwindow/llwindowwin32.cpp index 057d7a700e..0dbb5b64c1 100644 --- a/indra/llwindow/llwindowwin32.cpp +++ b/indra/llwindow/llwindowwin32.cpp @@ -4586,6 +4586,14 @@ U32 LLWindowWin32::getAvailableVRAMMegabytes() return mWindowThread ? mWindowThread->getAvailableVRAMMegabytes() : 0; } +void LLWindowWin32::setMaxVRAMMegabytes(U32 max_vram) +{ + if (mWindowThread) + { + mWindowThread->mMaxVRAM = max_vram; + } +} + #endif // LL_WINDOWS inline LLWindowWin32::LLWindowWin32Thread::LLWindowWin32Thread() |