summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-15 04:39:09 +0200
committerGitHub <noreply@github.com>2018-08-15 04:39:09 +0200
commit18dfa99030204f3f653538343083c6e9215a3ab2 (patch)
tree3452af9f04046814ceeaebd22099cd7de00c1fea
parentMerge pull request #1054 from zhaowenlan1779/misc-fixup (diff)
parentImplement Z16_UNORM in PixelFormatFromTextureFormat function (diff)
downloadyuzu-18dfa99030204f3f653538343083c6e9215a3ab2.tar
yuzu-18dfa99030204f3f653538343083c6e9215a3ab2.tar.gz
yuzu-18dfa99030204f3f653538343083c6e9215a3ab2.tar.bz2
yuzu-18dfa99030204f3f653538343083c6e9215a3ab2.tar.lz
yuzu-18dfa99030204f3f653538343083c6e9215a3ab2.tar.xz
yuzu-18dfa99030204f3f653538343083c6e9215a3ab2.tar.zst
yuzu-18dfa99030204f3f653538343083c6e9215a3ab2.zip
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
index 36a41522b..0de87d8c2 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
@@ -396,6 +396,8 @@ struct SurfaceParams {
UNREACHABLE();
case Tegra::Texture::TextureFormat::ZF32:
return PixelFormat::Z32F;
+ case Tegra::Texture::TextureFormat::Z16:
+ return PixelFormat::Z16;
case Tegra::Texture::TextureFormat::Z24S8:
return PixelFormat::Z24S8;
case Tegra::Texture::TextureFormat::DXT1: