mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-04 05:55:31 +02:00
Move NvOptimusEnablement someplace that works
This commit is contained in:
parent
ca2177cf0d
commit
8288476b26
2 changed files with 7 additions and 9 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue