mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-29 04:26:24 +02:00
misc: chore: Use collection expressions in OpenGL project
This commit is contained in:
parent
aa0cb50c5d
commit
a5dbcb75d0
8 changed files with 18 additions and 17 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue