summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoBackendBase.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-10-05 21:25:44 -0400
committerLioncash <mathew1800@gmail.com>2014-10-05 21:25:44 -0400
commit7c05d029d34470cd7bf5a7c2b0e8e9be92196428 (patch)
treed8030b5172af797cf74c99957ce4dcfdb2903815 /Source/Core/VideoCommon/VideoBackendBase.cpp
parentaf241c97107a5116a2c486294d1ccc65027a56e6 (diff)
parent19109e2d01d7bcbde51ba84f71fee1cfc751ec24 (diff)
Merge pull request #1085 from waddlesplash/refactoring
Migrate global init stuff into UICommon.
Diffstat (limited to 'Source/Core/VideoCommon/VideoBackendBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VideoBackendBase.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp
index a2d6d19845..817d917114 100644
--- a/Source/Core/VideoCommon/VideoBackendBase.cpp
+++ b/Source/Core/VideoCommon/VideoBackendBase.cpp
@@ -32,6 +32,13 @@ static bool IsGteVista()
return VerifyVersionInfo(&osvi, VER_MAJORVERSION, dwlConditionMask) != FALSE;
}
+
+// Nvidia drivers >= v302 will check if the application exports a global
+// variable named NvOptimusEnablement to know if it should run the app in high
+// performance graphics mode or using the IGP.
+extern "C" {
+__declspec(dllexport) DWORD NvOptimusEnablement = 1;
+}
#endif
void VideoBackend::PopulateList()