summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHexagon12 <Hexagon12@users.noreply.github.com>2018-08-08 00:59:51 +0200
committerbunnei <bunneidev@gmail.com>2018-08-08 00:59:50 +0200
commit7139f05fc576bd6673c3f58597c017f584c44053 (patch)
tree39d6bfaefe7542742f164619814b0d3503d9b50d /src
parentMerge pull request #920 from DarkLordZach/titlekey (diff)
downloadyuzu-7139f05fc576bd6673c3f58597c017f584c44053.tar
yuzu-7139f05fc576bd6673c3f58597c017f584c44053.tar.gz
yuzu-7139f05fc576bd6673c3f58597c017f584c44053.tar.bz2
yuzu-7139f05fc576bd6673c3f58597c017f584c44053.tar.lz
yuzu-7139f05fc576bd6673c3f58597c017f584c44053.tar.xz
yuzu-7139f05fc576bd6673c3f58597c017f584c44053.tar.zst
yuzu-7139f05fc576bd6673c3f58597c017f584c44053.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.h3
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 {
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: