Move NvOptimusEnablement someplace that works

This commit is contained in:
Struma 2021-09-30 21:14:28 -04:00 committed by Roza
parent ca2177cf0d
commit 8288476b26
2 changed files with 7 additions and 9 deletions

View file

@ -27,15 +27,6 @@
#include <stack>
#include <assert.h>
// Try to work around buggy GL drivers that tend to be in Optimus laptops
// by forcing MKXP to use the dedicated card instead of the integrated one
#ifdef __WIN32__
#include <windows.h>
extern "C" {
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
}
#endif
struct Config;
template<typename T>

View file

@ -51,6 +51,13 @@
#include "resource.h"
#include <Winsock2.h>
#include "util/win-consoleutils.h"
// Try to work around buggy GL drivers that tend to be in Optimus laptops
// by forcing MKXP to use the dedicated card instead of the integrated one
#include <windows.h>
extern "C" {
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
}
#endif
#ifdef MKXPZ_STEAM