Change the way discrete GPU forcing works
This commit is contained in:
parent
eddda6d787
commit
721c88fbee
2 changed files with 13 additions and 12 deletions
|
|
@ -1,12 +0,0 @@
|
|||
#ifdef WIN32
|
||||
|
||||
extern "C"
|
||||
{
|
||||
|
||||
__attribute__((dllexport)) unsigned long NvOptimusEnablement = 1;
|
||||
|
||||
__attribute__((dllexport)) int AmdPowerXpressRequestHighPerformance = 1;
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
13
libs/sdl2/include/psemek/sdl2/discrete_gpu.hpp
Normal file
13
libs/sdl2/include/psemek/sdl2/discrete_gpu.hpp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#pragma once
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
#define PSEMEK_SDL2_DISCRETE_GPU \
|
||||
extern "C" { __declspec(dllexport) unsigned long NvOptimusEnablement = 1; } \
|
||||
extern "C" { __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; }
|
||||
|
||||
#else
|
||||
|
||||
#define PSEMEK_SDL2_DISCRETE_GPU
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Reference in a new issue