summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2011-11-04 17:34:39 -0600
committerXiaohong Bao <bao@lindenlab.com>2011-11-04 17:34:39 -0600
commit02554b74827bdade4b8e3f23c4e7325ddd347040 (patch)
tree57fb33bb4dc8df1d74f5f4f161c093814ef5a562 /indra/newview
parent0c4adf499db20eadabe5aa49f2f4afd34525d60d (diff)
trivial: fix a linux compiling warning.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewertexturelist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp
index 85367ab1ac..a48572f792 100644
--- a/indra/newview/llviewertexturelist.cpp
+++ b/indra/newview/llviewertexturelist.cpp
@@ -1059,7 +1059,7 @@ S32 LLViewerTextureList::getMaxVideoRamSetting(bool get_recommended)
if(gGLManager.mIsATI)
{
//shrink the availabe vram for ATI cards because some of them do not handel texture swapping well.
- max_vram *= 0.75f;
+ max_vram = (S32)(max_vram * 0.75f);
}
max_vram = llmax(max_vram, getMinVideoRamSetting());