From 9ff21f9ab6b81b8a36227e76595da6ed61c5bf53 Mon Sep 17 00:00:00 2001 From: "Skyth (Asilkan)" <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Fri, 5 May 2023 19:35:59 +0300 Subject: [PATCH] Use ToLowerInvariant when detecting GPU vendor. (#4815) --- src/Ryujinx.Graphics.OpenGL/HwCapabilities.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx.Graphics.OpenGL/HwCapabilities.cs b/src/Ryujinx.Graphics.OpenGL/HwCapabilities.cs index bf365b4deb..dd0b1501fb 100644 --- a/src/Ryujinx.Graphics.OpenGL/HwCapabilities.cs +++ b/src/Ryujinx.Graphics.OpenGL/HwCapabilities.cs @@ -104,7 +104,7 @@ namespace Ryujinx.Graphics.OpenGL private static GpuVendor GetGpuVendor() { - string vendor = GL.GetString(StringName.Vendor).ToLower(); + string vendor = GL.GetString(StringName.Vendor).ToLowerInvariant(); if (vendor == "nvidia corporation") { @@ -112,7 +112,7 @@ namespace Ryujinx.Graphics.OpenGL } else if (vendor == "intel") { - string renderer = GL.GetString(StringName.Renderer).ToLower(); + string renderer = GL.GetString(StringName.Renderer).ToLowerInvariant(); return renderer.Contains("mesa") ? GpuVendor.IntelUnix : GpuVendor.IntelWindows; }