From 488fba16c12feb319d598fa9b77a0e3f5ceab15a Mon Sep 17 00:00:00 2001 From: Azaezel Date: Mon, 26 Feb 2018 22:34:21 -0600 Subject: [PATCH] requested revision: use dword just in case of compiler shenanigans --- Engine/source/main/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Engine/source/main/main.cpp b/Engine/source/main/main.cpp index b5fea8a07..ad3556913 100644 --- a/Engine/source/main/main.cpp +++ b/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 +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; }