misc: chore: Use collection expressions in OpenGL project

This commit is contained in:
Evan Husted 2025-01-26 15:50:22 -06:00
parent aa0cb50c5d
commit a5dbcb75d0
8 changed files with 18 additions and 17 deletions

View file

@ -35,8 +35,8 @@ namespace Ryujinx.Graphics.OpenGL
private bool _stencilTestEnable;
private bool _cullEnable;
private float[] _viewportArray = Array.Empty<float>();
private double[] _depthRangeArray = Array.Empty<double>();
private float[] _viewportArray = [];
private double[] _depthRangeArray = [];
private int _boundDrawFramebuffer;
private int _boundReadFramebuffer;
@ -111,7 +111,7 @@ namespace Ryujinx.Graphics.OpenGL
(componentMask & 4) != 0,
(componentMask & 8) != 0);
float[] colors = new float[] { color.Red, color.Green, color.Blue, color.Alpha };
float[] colors = [color.Red, color.Green, color.Blue, color.Alpha];
if (layer != 0 || layerCount != _framebuffer.GetColorLayerCount(index))
{