mirror of
https://github.com/GreemDev/Ryujinx
synced 2025-01-29 00:37:11 +01:00
misc: chore: Fix object creation in OpenGL project
This commit is contained in:
parent
94b65aec02
commit
eae6dba610
3 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -394,7 +394,7 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
{
|
||||
_upscaledTexture?.Dispose();
|
||||
|
||||
TextureCreateInfo info = new TextureCreateInfo(
|
||||
TextureCreateInfo info = new(
|
||||
_width,
|
||||
_height,
|
||||
1,
|
||||
|
|
Loading…
Reference in a new issue