Skip to content

Commit

Permalink
Add BGRA8 Srgb (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
HorrorTroll authored and gdkchan committed Nov 19, 2018
1 parent df59600 commit 0f5efe0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Ryujinx.Graphics/Gal/OpenGL/OGLEnumConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ public static (PixelInternalFormat, PixelFormat, PixelType) GetImageFormat(GalIm
case GalImageFormat.RGBA8 | GalImageFormat.Uint: return (PixelInternalFormat.Rgba8ui, PixelFormat.RgbaInteger, PixelType.UnsignedByte);
case GalImageFormat.RGBA8 | GalImageFormat.Srgb: return (PixelInternalFormat.Srgb8Alpha8, PixelFormat.Rgba, PixelType.UnsignedByte);
case GalImageFormat.BGRA8 | GalImageFormat.Unorm: return (PixelInternalFormat.Rgba8, PixelFormat.Bgra, PixelType.UnsignedByte);
case GalImageFormat.BGRA8 | GalImageFormat.Srgb: return (PixelInternalFormat.Srgb8Alpha8, PixelFormat.Bgra, PixelType.UnsignedByte);
case GalImageFormat.RGBA4 | GalImageFormat.Unorm: return (PixelInternalFormat.Rgba4, PixelFormat.Rgba, PixelType.UnsignedShort4444Reversed);
case GalImageFormat.RGB10A2 | GalImageFormat.Uint: return (PixelInternalFormat.Rgb10A2ui, PixelFormat.RgbaInteger, PixelType.UnsignedInt2101010Reversed);
case GalImageFormat.RGB10A2 | GalImageFormat.Unorm: return (PixelInternalFormat.Rgb10A2, PixelFormat.Rgba, PixelType.UnsignedInt2101010Reversed);
Expand Down

0 comments on commit 0f5efe0

Please sign in to comment.