Unident EnsureSetup in ImageHandler
This commit is contained in:
parent
9f99c6bd41
commit
af57499de9
1 changed files with 71 additions and 69 deletions
|
@ -38,11 +38,14 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
|||
|
||||
public void EnsureSetup(GalImage NewImage)
|
||||
{
|
||||
if (Width != NewImage.Width ||
|
||||
Height != NewImage.Height ||
|
||||
Format != NewImage.Format ||
|
||||
!Initialized)
|
||||
if (Width == NewImage.Width &&
|
||||
Height == NewImage.Height &&
|
||||
Format == NewImage.Format &&
|
||||
Initialized)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
(PixelInternalFormat InternalFormat, PixelFormat PixelFormat, PixelType PixelType) =
|
||||
OGLEnumConverter.GetImageFormat(NewImage.Format);
|
||||
|
||||
|
@ -111,7 +114,6 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
|||
|
||||
Initialized = true;
|
||||
}
|
||||
}
|
||||
|
||||
public bool HasColor => ImageTable.HasColor(Image.Format);
|
||||
public bool HasDepth => ImageTable.HasDepth(Image.Format);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue