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)
|
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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue