From 6eda9ebbdbfbc8334f81b1c18cb495c64b154fbb Mon Sep 17 00:00:00 2001 From: greggameplayer Date: Wed, 15 Aug 2018 01:10:37 +0200 Subject: Implement Z16_UNORM in PixelFormatFromTextureFormat function Require by Zelda Breath Of The Wild --- src/video_core/renderer_opengl/gl_rasterizer_cache.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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: -- cgit v1.2.3