Fix swapped channels on the video decoder and the G8R8 texture format
This commit is contained in:
parent
596918270f
commit
1afe30261a
3 changed files with 5 additions and 3 deletions
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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]
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace Ryujinx.Graphics.VideoDecoding
|
|||
public int Height;
|
||||
|
||||
public byte* LumaPtr;
|
||||
public byte* ChromaRPtr;
|
||||
public byte* ChromaBPtr;
|
||||
public byte* ChromaRPtr;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue