Fixups
This commit is contained in:
parent
6e12516e04
commit
248ad14b04
3 changed files with 5 additions and 2 deletions
|
@ -17,7 +17,7 @@ namespace Ryujinx.Graphics.Gal
|
||||||
|
|
||||||
ASTC_BEGIN = ASTC_4x4,
|
ASTC_BEGIN = ASTC_4x4,
|
||||||
|
|
||||||
ASTC_4x4 = 0,
|
ASTC_4x4 = 1,
|
||||||
ASTC_5x4,
|
ASTC_5x4,
|
||||||
ASTC_5x5,
|
ASTC_5x5,
|
||||||
ASTC_6x5,
|
ASTC_6x5,
|
||||||
|
|
|
@ -55,7 +55,9 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (Image.Format >= GalImageFormat.ASTC_BEGIN && Image.Format <= GalImageFormat.ASTC_END)
|
GalImageFormat TypeLess = Image.Format & GalImageFormat.FormatMask;
|
||||||
|
|
||||||
|
if (TypeLess >= GalImageFormat.ASTC_BEGIN && TypeLess <= GalImageFormat.ASTC_END)
|
||||||
{
|
{
|
||||||
int TextureBlockWidth = GetAstcBlockWidth(Image.Format);
|
int TextureBlockWidth = GetAstcBlockWidth(Image.Format);
|
||||||
int TextureBlockHeight = GetAstcBlockHeight(Image.Format);
|
int TextureBlockHeight = GetAstcBlockHeight(Image.Format);
|
||||||
|
|
|
@ -206,6 +206,7 @@ namespace Ryujinx.Graphics.Texture
|
||||||
return Image.Width * Image.Height * 8;
|
return Image.Width * Image.Height * 8;
|
||||||
|
|
||||||
case GalImageFormat.A8B8G8R8:
|
case GalImageFormat.A8B8G8R8:
|
||||||
|
case GalImageFormat.A8B8G8R8_SRGB:
|
||||||
case GalImageFormat.A2B10G10R10:
|
case GalImageFormat.A2B10G10R10:
|
||||||
case GalImageFormat.R16G16:
|
case GalImageFormat.R16G16:
|
||||||
case GalImageFormat.R32:
|
case GalImageFormat.R32:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue