diff options
| author | Dave Parks <davep@lindenlab.com> | 2011-03-10 00:42:08 -0600 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2011-03-10 00:42:08 -0600 |
| commit | ca610bfc82e9f150877efa7e8c4e972d47bce7d4 (patch) | |
| tree | 8a95ee221ad09ba96cf8cfd987c0e312e59757ea /indra/newview/llviewerwindow.cpp | |
| parent | 9044526994bb51b631a9a0cb7d6d6911a15957c6 (diff) | |
| parent | 5fd953df8fafb769d31688c47cf3f8634f858de5 (diff) | |
merge
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
| -rw-r--r-- | indra/newview/llviewerwindow.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 6561f1bcf6..093e94add0 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -465,6 +465,23 @@ public: addText(xpos, ypos, "Shaders Disabled"); ypos += y_inc; } + + if (gGLManager.mHasATIMemInfo) + { + S32 meminfo[4]; + glGetIntegerv(GL_TEXTURE_FREE_MEMORY_ATI, meminfo); + + addText(xpos, ypos, llformat("%.2f MB Texture Memory Free", meminfo[0]/1024.f)); + ypos += y_inc; + + if (gGLManager.mHasVertexBufferObject) + { + glGetIntegerv(GL_VBO_FREE_MEMORY_ATI, meminfo); + addText(xpos, ypos, llformat("%.2f MB VBO Memory Free", meminfo[0]/1024.f)); + ypos += y_inc; + } + } + addText(xpos, ypos, llformat("%d MB Vertex Data", LLVertexBuffer::sAllocatedBytes/(1024*1024))); ypos += y_inc; |
