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