Defaults dGPU on NVIDIA Optimus systems and requests High Performance
mode on AMD systems.
This commit is contained in:
Ani 2017-02-16 16:47:18 +00:00 committed by Ivan
parent 3ecba8e57f
commit 5605b4ee70

View File

@ -17,6 +17,14 @@ void gl::init()
}
#ifdef _WIN32
extern "C" {
// NVIDIA Optimus: Default dGPU instead of iGPU (Driver: 302+)
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
// AMD: Request dGPU High Performance (Driver: 13.35+)
_declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
#define OPENGL_PROC(p, n) p gl##n = nullptr
#define OPENGL_PROC2(p, n, tn) OPENGL_PROC(p, n)
#include "GLProcTable.h"