Fix swapped channels on the video decoder and the G8R8 texture format

This commit is contained in:
gdkchan 2018-10-14 13:47:25 -03:00
parent 596918270f
commit 1afe30261a
3 changed files with 5 additions and 3 deletions

View file

@ -93,6 +93,8 @@ namespace Ryujinx.Graphics.Gal.OpenGL
}
else
{
GalImageFormat ComponentType = Image.Format & GalImageFormat.TypeMask;
//TODO: Use KHR_texture_compression_astc_hdr when available
if (IsAstc(Image.Format))
{

View file

@ -77,8 +77,8 @@ namespace Ryujinx.Graphics.VideoDecoding
Height = ManagedFrame.height,
LumaPtr = Data[0],
ChromaRPtr = Data[1],
ChromaBPtr = Data[2]
ChromaBPtr = Data[1],
ChromaRPtr = Data[2]
};
}

View file

@ -6,7 +6,7 @@ namespace Ryujinx.Graphics.VideoDecoding
public int Height;
public byte* LumaPtr;
public byte* ChromaRPtr;
public byte* ChromaBPtr;
public byte* ChromaRPtr;
}
}