mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-29 20:30:54 +00:00
Fixed: Force use of NVIDIA GPU if Optimus is present
--HG-- branch : develop
This commit is contained in:
parent
326520465c
commit
a340260e40
1 changed files with 6 additions and 0 deletions
|
@ -121,6 +121,12 @@ static void sigHandler(int Sig)
|
||||||
//---------------------------------------------------
|
//---------------------------------------------------
|
||||||
#ifdef NL_OS_WINDOWS
|
#ifdef NL_OS_WINDOWS
|
||||||
|
|
||||||
|
// enable optimus for NVIDIA cards
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
|
||||||
|
}
|
||||||
|
|
||||||
void pump ()
|
void pump ()
|
||||||
{
|
{
|
||||||
// Display the window
|
// Display the window
|
||||||
|
|
Loading…
Reference in a new issue