Compare commits

...

2 Commits

Author SHA1 Message Date
Hexagon12
d8eb4df039 Add a message about SRGBA -> RGBA conversion 2018-08-07 20:06:46 +03:00
Hexagon12
41cde87040 Changed the sRGB pixel format return 2018-08-07 19:38:23 +03:00

View File

@@ -200,8 +200,9 @@ struct SurfaceParams {
static PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format) {
switch (format) {
// TODO (Hexagon12): Converting SRGBA to RGBA is a hack and doesn't completely correct the
// gamma.
case Tegra::RenderTargetFormat::RGBA8_SRGB:
return PixelFormat::SRGBA8;
case Tegra::RenderTargetFormat::RGBA8_UNORM:
return PixelFormat::ABGR8;
case Tegra::RenderTargetFormat::BGRA8_UNORM: