From 726d379775b4c8e1fc2b72f0c35829cd3151c880 Mon Sep 17 00:00:00 2001 From: the_mech Date: Sat, 17 Jan 2015 02:48:35 +0100 Subject: added nvidia optimus enablement --- platform/windows/os_windows.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'platform') 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 -- cgit v1.2.3