mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-06 01:11:03 +00:00
Use ToLowerInvariant when detecting GPU vendor. (#4815)
This commit is contained in:
parent
aa021085cf
commit
9ff21f9ab6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue