diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-11-05 11:30:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-05 11:30:06 +0100 |
commit | bf28c614b09b1dd5b176d9ed5b10ecb87efdd3d3 (patch) | |
tree | fb9f6141d861a3fc7b14f328af64b14ae029bfc5 | |
parent | 5d5227104e98f7fb248986d847165e6f8515372a (diff) | |
parent | 19d91f788d77227a7c00828bce6ffe91932cdcdd (diff) |
Merge pull request #23461 from hpvb/fix-23400
Properly export the various 'use dGPU' symbols when building with MingW
-rw-r--r-- | platform/windows/os_windows.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index f8705c4bff..5e9f9bc59b 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -58,11 +58,8 @@ static const WORD MAX_CONSOLE_LINES = 1500; extern "C" { -#ifdef _MSC_VER -_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; -#else -__attribute__((visibility("default"))) DWORD NvOptimusEnablement = 0x00000001; -#endif +__declspec(dllexport) DWORD NvOptimusEnablement = 1; +__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; } // Workaround mingw-w64 < 4.0 bug |