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) public void EnsureSetup(GalImage NewImage)
{ {
if (Width != NewImage.Width || if (Width == NewImage.Width &&
Height != NewImage.Height || Height == NewImage.Height &&
Format != NewImage.Format || Format == NewImage.Format &&
!Initialized) Initialized)
{ {
return;
}
(PixelInternalFormat InternalFormat, PixelFormat PixelFormat, PixelType PixelType) = (PixelInternalFormat InternalFormat, PixelFormat PixelFormat, PixelType PixelType) =
OGLEnumConverter.GetImageFormat(NewImage.Format); OGLEnumConverter.GetImageFormat(NewImage.Format);
@ -111,7 +114,6 @@ namespace Ryujinx.Graphics.Gal.OpenGL
Initialized = true; Initialized = true;
} }
}
public bool HasColor => ImageTable.HasColor(Image.Format); public bool HasColor => ImageTable.HasColor(Image.Format);
public bool HasDepth => ImageTable.HasDepth(Image.Format); public bool HasDepth => ImageTable.HasDepth(Image.Format);