Browse Source

Merge pull request #1241 from the-mech/master

added nvidia optimus enablement Issue #1120
Juan Linietsky 10 years ago
parent
commit
3e7d475b59
1 changed files with 3 additions and 0 deletions
  1. 3 0
      platform/windows/os_windows.cpp

+ 3 - 0
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