Moved NvOptimusEnablement and AmdPowerXpressRequestHighPerformance out of sfml-main and into a macro the user can place in their own translation unit when they need it. Fixes #1192

This commit is contained in:
binary1248 2018-04-07 02:17:05 +02:00 committed by Lukas Dürrenberger
parent ee957f3420
commit cd1387479e
4 changed files with 83 additions and 8 deletions

View file

@ -41,14 +41,6 @@
#include <windows.h>
// Inform the Nvidia/AMD driver that this SFML application could
// benefit from using the more powerful discrete GPU
extern "C"
{
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
extern int main(int argc, char* argv[]);
////////////////////////////////////////////////////////////