From: divverent Date: Thu, 26 Nov 2015 13:52:27 +0000 (+0000) Subject: Set NvOptimusEnablement. X-Git-Tag: xonotic-v0.8.5~88^2~86 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=118b0260c3c33669cd45bad72ddfdcf9232a1d65;p=xonotic%2Fdarkplaces.git Set NvOptimusEnablement. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12235 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 3d9686e0..0759f105 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -34,6 +34,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. extern LPDIRECT3DDEVICE9 vid_d3d9dev; #endif +#ifdef WIN32 +// Enable NVIDIA High Performance Graphics while using Integrated Graphics. +extern "C" { +__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; +} +#endif + mempool_t *r_main_mempool; rtexturepool_t *r_main_texturepool;