Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-06-13 18:42:55 +0300
committerbubnikv <bubnikv@gmail.com>2019-06-13 18:42:55 +0300
commitd750d4f9255bfb388ba7b53d3a366ac16d84a7d0 (patch)
tree15be109e69f0a88279556c094446d69dc389d542 /src/PrusaSlicer.cpp
parent9b7bb41db5b949285d28206a4ff44078bce37ecf (diff)
Re-enable high power graphics card on Windows.
This is a regression issue against 1.41.3
Diffstat (limited to 'src/PrusaSlicer.cpp')
-rw-r--r--src/PrusaSlicer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/PrusaSlicer.cpp b/src/PrusaSlicer.cpp
index a3247b929..2becb8071 100644
--- a/src/PrusaSlicer.cpp
+++ b/src/PrusaSlicer.cpp
@@ -7,10 +7,13 @@
#include <Windows.h>
#include <wchar.h>
#ifdef SLIC3R_GUI
+ extern "C"
+ {
// Let the NVIDIA and AMD know we want to use their graphics card
// on a dual graphics card system.
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
+ }
#endif /* SLIC3R_GUI */
#endif /* WIN32 */