diff options
author | Graham Linden <graham@lindenlab.com> | 2018-07-02 19:30:31 +0100 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-07-02 19:30:31 +0100 |
commit | 5e12beba702edb036b00690e7d810a3973cc96af (patch) | |
tree | b8172c1a9553cb16625449b3e50e09e50d8560fe /indra | |
parent | 3008962f0c990f4bfd270bee38152d2531ddfcd2 (diff) |
MAINT-7548 MAINT-7560 use NvidiaOptimusEnablement globally exported var to signal desire to use high-performance graphics processor
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llrender/llgl.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp index 35b6951779..f8aa63c16f 100644 --- a/indra/llrender/llgl.cpp +++ b/indra/llrender/llgl.cpp @@ -2561,5 +2561,10 @@ void LLGLSyncFence::wait() #endif } - - +#if LL_WINDOWS +// Expose desired use of high-performance graphics processor to Optimus driver +extern "C"
+{
+ _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
+}
+#endif
\ No newline at end of file |