1
0
mirror of synced 2024-11-27 19:10:48 +01:00

Force use of Nvidia card

This commit is contained in:
Bobby Dilley 2024-01-05 23:54:08 +00:00
parent 0f87c9cf26
commit d9b7b9b672

View File

@ -63,6 +63,10 @@ void setEnvironmentVariables()
// Ensure the preload path is set correctly // Ensure the preload path is set correctly
setenv(LD_PRELOAD, PRELOAD_FILE_NAME, 1); setenv(LD_PRELOAD, PRELOAD_FILE_NAME, 1);
// Ensure the game runs on the NVidia Graphics Card
setenv("__NV_PRIME_RENDER_OFFLOAD", "1", 1);
setenv("__GLX_VENDOR_LIBRARY_NAME", "nvidia", 1);
} }
/** /**