summaryrefslogtreecommitdiff
path: root/indra/llwindow
diff options
context:
space:
mode:
authorGeenz <geenz@geenzo.com>2013-06-20 11:28:05 -0400
committerGeenz <geenz@geenzo.com>2013-06-20 11:28:05 -0400
commit90e511bbdf9e08059180218e47350e4d2b431b68 (patch)
tree1f3aa049644aae7cfff7635a8893330f485502e8 /indra/llwindow
parent9c83d4b5b88a927c4365154663b1809a450ccb98 (diff)
Handle VRAM in megabytes. This was previously being reported as bytes.
Diffstat (limited to 'indra/llwindow')
-rw-r--r--indra/llwindow/llopenglview-objc.mm3
1 files changed, 2 insertions, 1 deletions
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