diff options
| author | 2018-08-08 01:59:51 +0300 | |
|---|---|---|
| committer | 2018-08-07 18:59:50 -0400 | |
| commit | 7139f05fc576bd6673c3f58597c017f584c44053 (patch) | |
| tree | 39d6bfaefe7542742f164619814b0d3503d9b50d /src | |
| parent | Merge pull request #920 from DarkLordZach/titlekey (diff) | |
| download | yuzu-7139f05fc576bd6673c3f58597c017f584c44053.tar.gz yuzu-7139f05fc576bd6673c3f58597c017f584c44053.tar.xz yuzu-7139f05fc576bd6673c3f58597c017f584c44053.zip | |
Fixed the sRGB pixel format (#963)
* Changed the sRGB pixel format return
* Add a message about SRGBA -> RGBA conversion
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index 39fcf22b4..0c6652c7a 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h | |||
| @@ -204,8 +204,9 @@ struct SurfaceParams { | |||
| 204 | 204 | ||
| 205 | static PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format) { | 205 | static PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format) { |
| 206 | switch (format) { | 206 | switch (format) { |
| 207 | // TODO (Hexagon12): Converting SRGBA to RGBA is a hack and doesn't completely correct the | ||
| 208 | // gamma. | ||
| 207 | case Tegra::RenderTargetFormat::RGBA8_SRGB: | 209 | case Tegra::RenderTargetFormat::RGBA8_SRGB: |
| 208 | return PixelFormat::SRGBA8; | ||
| 209 | case Tegra::RenderTargetFormat::RGBA8_UNORM: | 210 | case Tegra::RenderTargetFormat::RGBA8_UNORM: |
| 210 | return PixelFormat::ABGR8; | 211 | return PixelFormat::ABGR8; |
| 211 | case Tegra::RenderTargetFormat::BGRA8_UNORM: | 212 | case Tegra::RenderTargetFormat::BGRA8_UNORM: |