diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-15 05:08:37 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-08-15 05:18:34 +0200 |
commit | 8599e1e4fce85f6830d7189ae97f9c46872d6f4f (patch) | |
tree | 543a25900ab7f22196a7b29082b1c42973aa0e88 | |
parent | Merge pull request #1069 from bunnei/vtx-sz (diff) | |
download | yuzu-8599e1e4fce85f6830d7189ae97f9c46872d6f4f.tar yuzu-8599e1e4fce85f6830d7189ae97f9c46872d6f4f.tar.gz yuzu-8599e1e4fce85f6830d7189ae97f9c46872d6f4f.tar.bz2 yuzu-8599e1e4fce85f6830d7189ae97f9c46872d6f4f.tar.lz yuzu-8599e1e4fce85f6830d7189ae97f9c46872d6f4f.tar.xz yuzu-8599e1e4fce85f6830d7189ae97f9c46872d6f4f.tar.zst yuzu-8599e1e4fce85f6830d7189ae97f9c46872d6f4f.zip |
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 10 |
1 files changed, 9 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 37eef5ad0..dbacb7f3d 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h @@ -354,7 +354,15 @@ struct SurfaceParams { static_cast<u32>(component_type)); UNREACHABLE(); case Tegra::Texture::TextureFormat::R16_G16_B16_A16: - return PixelFormat::RGBA16F; + switch (component_type) { + case Tegra::Texture::ComponentType::UNORM: + return PixelFormat::RGBA16U; + case Tegra::Texture::ComponentType::FLOAT: + return PixelFormat::RGBA16F; + } + LOG_CRITICAL(HW_GPU, "Unimplemented component_type={}", + static_cast<u32>(component_type)); + UNREACHABLE(); case Tegra::Texture::TextureFormat::BF10GF11RF11: return PixelFormat::R11FG11FB10F; case Tegra::Texture::TextureFormat::R32_G32_B32_A32: |