From eae6dba61016ed521af40e71c3325b514c1e522c Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Sun, 26 Jan 2025 15:16:12 -0600 Subject: [PATCH] misc: chore: Fix object creation in OpenGL project --- src/Ryujinx.Graphics.OpenGL/Effects/FsrScalingFilter.cs | 2 +- .../Effects/SmaaPostProcessingEffect.cs | 6 +++--- src/Ryujinx.Graphics.OpenGL/Window.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Ryujinx.Graphics.OpenGL/Effects/FsrScalingFilter.cs b/src/Ryujinx.Graphics.OpenGL/Effects/FsrScalingFilter.cs index c1275eb80..0bc9d6f45 100644 --- a/src/Ryujinx.Graphics.OpenGL/Effects/FsrScalingFilter.cs +++ b/src/Ryujinx.Graphics.OpenGL/Effects/FsrScalingFilter.cs @@ -98,7 +98,7 @@ namespace Ryujinx.Graphics.OpenGL.Effects { _intermediaryTexture?.Dispose(); TextureCreateInfo originalInfo = view.Info; - TextureCreateInfo info = new TextureCreateInfo(width, + TextureCreateInfo info = new(width, height, originalInfo.Depth, originalInfo.Levels, diff --git a/src/Ryujinx.Graphics.OpenGL/Effects/SmaaPostProcessingEffect.cs b/src/Ryujinx.Graphics.OpenGL/Effects/SmaaPostProcessingEffect.cs index bb320fcec..a31c10891 100644 --- a/src/Ryujinx.Graphics.OpenGL/Effects/SmaaPostProcessingEffect.cs +++ b/src/Ryujinx.Graphics.OpenGL/Effects/SmaaPostProcessingEffect.cs @@ -117,7 +117,7 @@ namespace Ryujinx.Graphics.OpenGL.Effects.Smaa private void Initialize() { - TextureCreateInfo areaInfo = new TextureCreateInfo(AreaWidth, + TextureCreateInfo areaInfo = new(AreaWidth, AreaHeight, 1, 1, @@ -133,7 +133,7 @@ namespace Ryujinx.Graphics.OpenGL.Effects.Smaa SwizzleComponent.Blue, SwizzleComponent.Alpha); - TextureCreateInfo searchInfo = new TextureCreateInfo(SearchWidth, + TextureCreateInfo searchInfo = new(SearchWidth, SearchHeight, 1, 1, @@ -194,7 +194,7 @@ namespace Ryujinx.Graphics.OpenGL.Effects.Smaa GL.ActiveTexture(TextureUnit.Texture2); int previousTextureBinding2 = GL.GetInteger(GetPName.TextureBinding2D); - Framebuffer framebuffer = new Framebuffer(); + Framebuffer framebuffer = new(); framebuffer.Bind(); framebuffer.AttachColor(0, edgeOutput); GL.Clear(ClearBufferMask.ColorBufferBit); diff --git a/src/Ryujinx.Graphics.OpenGL/Window.cs b/src/Ryujinx.Graphics.OpenGL/Window.cs index c75fa5078..2813e03bc 100644 --- a/src/Ryujinx.Graphics.OpenGL/Window.cs +++ b/src/Ryujinx.Graphics.OpenGL/Window.cs @@ -394,7 +394,7 @@ namespace Ryujinx.Graphics.OpenGL { _upscaledTexture?.Dispose(); - TextureCreateInfo info = new TextureCreateInfo( + TextureCreateInfo info = new( _width, _height, 1,