summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorthe_mech <roman.nekrassow@gmail.com>2015-01-17 02:48:35 +0100
committerthe_mech <roman.nekrassow@gmail.com>2015-01-17 02:48:35 +0100
commit726d379775b4c8e1fc2b72f0c35829cd3151c880 (patch)
tree3567a717d97473a3ff357b9abadbb8f1f3ddf72f /platform
parent04af74596d070f062bd917b0364d87c57544f8d5 (diff)
added nvidia optimus enablement
Diffstat (limited to 'platform')
-rw-r--r--platform/windows/os_windows.cpp3
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