Explorar o código

requested revision: use dword just in case of compiler shenanigans

Azaezel %!s(int64=7) %!d(string=hai) anos
pai
achega
488fba16c1
Modificáronse 1 ficheiros con 5 adicións e 3 borrados
  1. 5 3
      Engine/source/main/main.cpp

+ 5 - 3
Engine/source/main/main.cpp

@@ -283,9 +283,11 @@ int main(int argc, const char **argv)
 #include "app/mainLoop.h"
 #include "T3D/gameFunctions.h"
 
-#if defined(WIN32) || defined(_WIN32) //tell switchable graphics supported systems that they need to use the beefier GPU
-extern "C" { __declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001; }
-extern "C" { __declspec(dllexport) unsigned long AmdPowerXpressRequestHighPerformance = 0x00000001; }
+#if defined(WIN32) || defined(_WIN32) 
+//tell switchable graphics supported systems that they need to use the beefier GPU
+#include <windows.h>
+extern "C" { __declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; }
+extern "C" { __declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 0x00000001; }
 #else 
 extern "C" { int NvOptimusEnablement = 1; }
 extern "C" { int AmdPowerXpressRequestHighPerformance = 1; }