diff options
author | Richard Linden <none@none> | 2013-09-09 20:18:12 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2013-09-09 20:18:12 -0700 |
commit | 21ab67416d471a90b343052c986478c9dd65ae79 (patch) | |
tree | 996879f9281222b1ea581bf759d14d16378e1fff /indra/llcommon | |
parent | 4f44366731c6fb3bf62c29a5413dc8db86ab4f2e (diff) |
SH-4774 FIX: textures are blurry on Mac
Diffstat (limited to 'indra/llcommon')
-rwxr-xr-x | indra/llcommon/llsys.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llcommon/llsys.cpp b/indra/llcommon/llsys.cpp index 2b0083caff..49cc441b68 100755 --- a/indra/llcommon/llsys.cpp +++ b/indra/llcommon/llsys.cpp @@ -862,17 +862,17 @@ U32Kilobytes LLMemoryInfo::getPhysicalMemoryKB() const size_t len = sizeof(phys); sysctl(mib, 2, &phys, &len, NULL, 0); - return U32Bytes(phys); + return U32Bytes(llmax(phys, (U64)U32_MAX)); #elif LL_LINUX U64 phys = 0; phys = (U64)(getpagesize()) * (U64)(get_phys_pages()); - return U32Bytes(phys); + return U32Bytes(llmax(phys, (U64)U32_MAX)); #elif LL_SOLARIS U64 phys = 0; phys = (U64)(getpagesize()) * (U64)(sysconf(_SC_PHYS_PAGES)); - return U32Bytes(phys); + return U32Bytes(llmax(phys, (U64)U32_MAX)); #else return 0; |