formatting fixes
This commit is contained in:
parent
06c3a08695
commit
b17739a865
1 changed files with 2 additions and 1 deletions
|
@ -286,7 +286,8 @@ void main() {
|
||||||
|
|
||||||
u64 Device::GetCurrentDedicatedVideoMemory() const {
|
u64 Device::GetCurrentDedicatedVideoMemory() const {
|
||||||
GLint cur_avail_mem_kb = 0;
|
GLint cur_avail_mem_kb = 0;
|
||||||
// this should report the correct size of the VRAM, on integrated devices it shows the size of the UMA Framebuffer
|
// this should report the correct size of the VRAM, on integrated devices it shows the size of
|
||||||
|
// the UMA Framebuffer
|
||||||
glGetIntegerv(GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX, &cur_avail_mem_kb);
|
glGetIntegerv(GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX, &cur_avail_mem_kb);
|
||||||
return static_cast<u64>(cur_avail_mem_kb) * 1_KiB;
|
return static_cast<u64>(cur_avail_mem_kb) * 1_KiB;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue