From 90e511bbdf9e08059180218e47350e4d2b431b68 Mon Sep 17 00:00:00 2001 From: Geenz Date: Thu, 20 Jun 2013 11:28:05 -0400 Subject: Handle VRAM in megabytes. This was previously being reported as bytes. --- indra/llwindow/llopenglview-objc.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'indra/llwindow') diff --git a/indra/llwindow/llopenglview-objc.mm b/indra/llwindow/llopenglview-objc.mm index 24de5912f0..aa7df2c985 100644 --- a/indra/llwindow/llopenglview-objc.mm +++ b/indra/llwindow/llopenglview-objc.mm @@ -88,7 +88,8 @@ attributedStringInfo getSegments(NSAttributedString *str) { vram_bytes = (256 << 20); } - return (unsigned long)vram_bytes; + + return (unsigned long)vram_bytes / 1048576; // We need this in megabytes. } - (void)viewDidMoveToWindow -- cgit v1.2.3