diff options
author | Dave Parks <davep@lindenlab.com> | 2023-11-03 11:15:19 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2023-11-03 11:15:19 -0500 |
commit | 70721bae390ab49ff24022c5c8f75bc274adc8c8 (patch) | |
tree | 7510965daa8cabdd66c0a00e5eadb6e5f948c78a /indra/llwindow/llwindowmacosx.cpp | |
parent | 439d26ccdc2864794036a8f6432664755f2b8234 (diff) |
DRTVWR-559 Fix for mac build.
Diffstat (limited to 'indra/llwindow/llwindowmacosx.cpp')
-rw-r--r-- | indra/llwindow/llwindowmacosx.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/indra/llwindow/llwindowmacosx.cpp b/indra/llwindow/llwindowmacosx.cpp index b99af1ae4c..778e5d3898 100644 --- a/indra/llwindow/llwindowmacosx.cpp +++ b/indra/llwindow/llwindowmacosx.cpp @@ -1962,10 +1962,12 @@ public: void* LLWindowMacOSX::createSharedContext() { sharedContext* sc = new sharedContext(); - CGLError err = CGLCreateContext(mPixelFormat, mContext, &(sc->mContext)); - llassert(err == kCGLNoError); - - CGLEnable(mContext, kCGLCEMPEngine); + CGLCreateContext(mPixelFormat, mContext, &(sc->mContext)); + + if (sUseMultGL) + { + CGLEnable(mContext, kCGLCEMPEngine); + } return (void *)sc; } |