0
0
Fork 0

Convert the bool to a lowercase string (#3080)

mesa_glthread doesn't accept PascalCase input
This commit is contained in:
edisionnano 2022-02-06 17:52:39 +02:00 committed by GitHub
parent 88d3ffb97c
commit 5c3112aaeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ namespace Ryujinx.Common.GraphicsDriver
{ {
public static void ToggleOGLThreading(bool enabled) public static void ToggleOGLThreading(bool enabled)
{ {
Environment.SetEnvironmentVariable("mesa_glthread", enabled.ToString()); Environment.SetEnvironmentVariable("mesa_glthread", enabled.ToString().ToLower());
Environment.SetEnvironmentVariable("__GL_THREADED_OPTIMIZATIONS", enabled ? "1" : "0"); Environment.SetEnvironmentVariable("__GL_THREADED_OPTIMIZATIONS", enabled ? "1" : "0");
try try