From 02554b74827bdade4b8e3f23c4e7325ddd347040 Mon Sep 17 00:00:00 2001 From: Xiaohong Bao Date: Fri, 4 Nov 2011 17:34:39 -0600 Subject: trivial: fix a linux compiling warning. --- indra/newview/llviewertexturelist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- cgit v1.2.3