Browse Source

Merge pull request #1241 from the-mech/master

added nvidia optimus enablement Issue #1120
Juan Linietsky 10 năm trước cách đây
mục cha
commit
3e7d475b59
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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