From: divverent Date: Thu, 26 Nov 2015 14:48:26 +0000 (+0000) Subject: Oops. Add more ifdeffery to the NvOptimus stuff :) X-Git-Tag: xonotic-v0.8.5~88^2~84 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=eef1f18035e32aa86618aa3e8c3a20a604559730;p=xonotic%2Fdarkplaces.git Oops. Add more ifdeffery to the NvOptimus stuff :) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12237 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 0759f105..3f8ba42d 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -36,10 +36,14 @@ extern LPDIRECT3DDEVICE9 vid_d3d9dev; #ifdef WIN32 // Enable NVIDIA High Performance Graphics while using Integrated Graphics. +#ifdef __cplusplus extern "C" { +#endif __declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; +#ifdef __cplusplus } #endif +#endif mempool_t *r_main_mempool; rtexturepool_t *r_main_texturepool;