diff options
author | Geenz <geenz@geenzo.com> | 2013-03-11 10:26:52 -0400 |
---|---|---|
committer | Geenz <geenz@geenzo.com> | 2013-03-11 10:26:52 -0400 |
commit | 3c60fb24ca3685614880645af61d44287c369aea (patch) | |
tree | b4cdf8d72a107de57325577942cafdbb5699e66a /indra/llwindow/llwindowmacosx.cpp | |
parent | 5caa7a465e73fc9cf70f5f2c5d147a509bd5e185 (diff) | |
parent | d046e606575b2c3714a88e321c88e05441cba4a8 (diff) |
Merge
Diffstat (limited to 'indra/llwindow/llwindowmacosx.cpp')
-rw-r--r-- | indra/llwindow/llwindowmacosx.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/llwindow/llwindowmacosx.cpp b/indra/llwindow/llwindowmacosx.cpp index 2f6c2101ef..34cc371526 100644 --- a/indra/llwindow/llwindowmacosx.cpp +++ b/indra/llwindow/llwindowmacosx.cpp @@ -441,6 +441,8 @@ BOOL LLWindowMacOSX::createContext(int x, int y, int width, int height, int bits mContext = getCGLContextObj(mGLView); // Since we just created the context, it needs to be set up. glNeedsInit = TRUE; + + gGLManager.mVRAM = getVramSize(mGLView); } // Hook up the context to a drawable @@ -542,8 +544,9 @@ void LLWindowMacOSX::destroyContext() // Close the window if(mWindow != NULL) { - closeWindow(mWindow); - mWindow = NULL; + NSWindowRef dead_window = mWindow; + mWindow = NULL; + closeWindow(dead_window); } } |