Added NvOptimusEnablement.

This commit is contained in:
Camilla Berglund
2013-08-07 18:07:33 +02:00
parent a024e61bf8
commit 735bc2d815
4 changed files with 21 additions and 0 deletions
+4
View File
@@ -18,6 +18,7 @@ option(GLFW_DOCUMENT_INTERNALS "Include internals in documentation" OFF)
if (WIN32)
option(GLFW_USE_DWM_SWAP_INTERVAL "Set swap interval even when DWM compositing is enabled" OFF)
option(GLFW_USE_OPTIMUS_HPG "Force use of high-performance GPU on Optimus systems" OFF)
endif()
if (APPLE)
@@ -159,6 +160,9 @@ if (_GLFW_WIN32)
if (GLFW_USE_DWM_SWAP_INTERVAL)
set(_GLFW_USE_DWM_SWAP_INTERVAL 1)
endif()
if (GLFW_USE_OPTIMUS_HPG)
set(_GLFW_USE_OPTIMUS_HPG 1)
endif()
endif()
#--------------------------------------------------------------------