diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 6dd448f091a392bc768b7ad0e6e4d597294331e0..5360a675388f7076dd7f3fa8e834cb3cc2a2ab48 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -937,7 +937,7 @@ bool LLPipeline::allocateScreenBuffer(U32 resX, U32 resY, U32 samples)
 			}
 		}
 
-		U32 width = resX*scale;
+		U32 width = (U32) (resX*scale);
 		U32 height = width;
 
 		if (shadow_detail > 1)