summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-01-16 23:02:13 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-01-16 23:02:13 -0300
commit3e7d475b59e0a25971cfcfd91f37046f534d88fe (patch)
tree3567a717d97473a3ff357b9abadbb8f1f3ddf72f
parent04af74596d070f062bd917b0364d87c57544f8d5 (diff)
parent726d379775b4c8e1fc2b72f0c35829cd3151c880 (diff)
Merge pull request #1241 from the-mech/master
added nvidia optimus enablement Issue #1120
-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