From eef1f18035e32aa86618aa3e8c3a20a604559730 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 26 Nov 2015 14:48:26 +0000 Subject: [PATCH] Oops. Add more ifdeffery to the NvOptimus stuff :) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12237 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.2