mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
Merge pull request #23461 from hpvb/fix-23400
Properly export the various 'use dGPU' symbols when building with MingW
This commit is contained in:
commit
bf28c614b0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user