Tell system that it should use nvidia on optimus devices

This commit is contained in:
Deve 2019-07-19 09:25:48 +02:00 committed by GitHub
parent c6d23205bd
commit fd3a2099bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -787,5 +787,12 @@ bool checkGLError()
return err != GL_NO_ERROR;
}
#ifdef WIN32
// Tell system that it should use nvidia on optimus devices
extern "C" {
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
}
#endif
#endif // !SERVER_ONLY