Fixed: Force use of NVIDIA GPU if Optimus is present

This commit is contained in:
kervala 2015-11-09 09:55:38 +01:00
parent f3ecc4f41b
commit c04ebbe735

View file

@ -121,6 +121,12 @@ static void sigHandler(int Sig)
//---------------------------------------------------
#ifdef NL_OS_WINDOWS
// enable optimus for NVIDIA cards
extern "C"
{
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
}
void pump ()
{
// Display the window