diff options
Diffstat (limited to 'indra/llwindow/llwindowmacosx.cpp')
-rw-r--r-- | indra/llwindow/llwindowmacosx.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/llwindow/llwindowmacosx.cpp b/indra/llwindow/llwindowmacosx.cpp index a32013a5ee..c18e72b706 100644 --- a/indra/llwindow/llwindowmacosx.cpp +++ b/indra/llwindow/llwindowmacosx.cpp @@ -11,6 +11,7 @@ #include "linden_common.h" #include <Carbon/Carbon.h> +#include <OpenGL/OpenGL.h> #include "llwindowmacosx.h" #include "llkeyboardmacosx.h" @@ -719,6 +720,22 @@ BOOL LLWindowMacOSX::createContext(int x, int y, int width, int height, int bits } aglSetInteger(mContext, AGL_SWAP_INTERVAL, &frames_per_swap); +#if 0 // SJB: Got a compile error. Plus I don't want to test this along with everything else ; save it for later + //enable multi-threaded OpenGL + CGLError cgl_err; + CGLContextObj ctx = CGLGetCurrentContext(); + + cgl_err = CGLEnable( ctx, kCGLCEMPEngine); + + if (cgl_err != kCGLNoError ) + { + llinfos << "Multi-threaded OpenGL not available." << llendl; + } + else + { + llinfos << "Multi-threaded OpenGL enabled." << llendl; + } +#endif // Don't need to get the current gamma, since there's a call that restores it to the system defaults. return TRUE; } |