From 118b0260c3c33669cd45bad72ddfdcf9232a1d65 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 26 Nov 2015 13:52:27 +0000 Subject: [PATCH] Set NvOptimusEnablement. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12235 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- 2.39.2