mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-15 15:25:31 +00:00
Fixed the sRGB pixel format (#963)
* Changed the sRGB pixel format return * Add a message about SRGBA -> RGBA conversion
This commit is contained in:
parent
b9829a05be
commit
7139f05fc5
|
@ -204,8 +204,9 @@ struct SurfaceParams {
|
||||||
|
|
||||||
static PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format) {
|
static PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format) {
|
||||||
switch (format) {
|
switch (format) {
|
||||||
|
// TODO (Hexagon12): Converting SRGBA to RGBA is a hack and doesn't completely correct the
|
||||||
|
// gamma.
|
||||||
case Tegra::RenderTargetFormat::RGBA8_SRGB:
|
case Tegra::RenderTargetFormat::RGBA8_SRGB:
|
||||||
return PixelFormat::SRGBA8;
|
|
||||||
case Tegra::RenderTargetFormat::RGBA8_UNORM:
|
case Tegra::RenderTargetFormat::RGBA8_UNORM:
|
||||||
return PixelFormat::ABGR8;
|
return PixelFormat::ABGR8;
|
||||||
case Tegra::RenderTargetFormat::BGRA8_UNORM:
|
case Tegra::RenderTargetFormat::BGRA8_UNORM:
|
||||||
|
|
Loading…
Reference in a new issue