Browse Source

added nvidia optimus enablement

the_mech 10 năm trước cách đây
mục cha
commit
726d379775
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