Unident EnsureSetup in ImageHandler

This commit is contained in:
ReinUsesLisp 2018-09-05 15:17:37 -03:00
commit af57499de9

View file

@ -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);