Index at 0 instead of using LINQ's First

This commit is contained in:
abcdefg30
2023-10-30 16:12:43 +01:00
committed by Gustas
parent 7baae40b2d
commit 3f0159cd89
3 changed files with 3 additions and 3 deletions

View File

@@ -160,7 +160,7 @@ namespace OpenRA.Platforms.Default
throw new InvalidOperationException("No supported OpenGL profiles were found.");
}
profile = supportedProfiles.Contains(requestProfile) ? requestProfile : supportedProfiles.First();
profile = supportedProfiles.Contains(requestProfile) ? requestProfile : supportedProfiles[0];
// Note: This must be called after the CanCreateGLWindow checks above,
// which needs to create and destroy its own SDL contexts as a workaround for specific buggy drivers