diff options
author | the_mech <roman.nekrassow@gmail.com> | 2015-01-17 02:48:35 +0100 |
---|---|---|
committer | the_mech <roman.nekrassow@gmail.com> | 2015-01-17 02:48:35 +0100 |
commit | 726d379775b4c8e1fc2b72f0c35829cd3151c880 (patch) | |
tree | 3567a717d97473a3ff357b9abadbb8f1f3ddf72f /platform | |
parent | 04af74596d070f062bd917b0364d87c57544f8d5 (diff) |
added nvidia optimus enablement
Diffstat (limited to 'platform')
-rw-r--r-- | platform/windows/os_windows.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 45d13da828..ce79133664 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -56,6 +56,9 @@ #include "shlobj.h" static const WORD MAX_CONSOLE_LINES = 1500; +extern "C" { + _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; +} //#define STDOUT_FILE |