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
commit 1afe30261a
3 changed files with 5 additions and 3 deletions

View file

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

View file

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

View file

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