diff options
| author | MaranBr <maranbr@outlook.com> | 2025-10-24 11:35:33 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2025-10-24 11:35:33 +0200 |
| commit | cd4bcb91ccc485a751c276616ef74d56d318f121 (patch) | |
| tree | 91a02d147b35615492446db8f87d12b68fa0e035 /src/video_core/texture_cache/image_info.cpp | |
| parent | 199bc6a1704842cac675de95c130fc27e03623d6 (diff) | |
[video_core] Better error messages (#2827)
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2827
Reviewed-by: Maufeat <sahyno1996@gmail.com>
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Co-authored-by: MaranBr <maranbr@outlook.com>
Co-committed-by: MaranBr <maranbr@outlook.com>
Diffstat (limited to 'src/video_core/texture_cache/image_info.cpp')
| -rw-r--r-- | src/video_core/texture_cache/image_info.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/video_core/texture_cache/image_info.cpp b/src/video_core/texture_cache/image_info.cpp index df01b4ed8a..5cf5ddeaf4 100644 --- a/src/video_core/texture_cache/image_info.cpp +++ b/src/video_core/texture_cache/image_info.cpp @@ -51,10 +51,8 @@ ImageInfo::ImageInfo(const TICEntry& config) noexcept { config.texture_type != TextureType::Texture2DNoMipmap) { ASSERT(!config.IsPitchLinear()); } - //Normalize so that the 1D that actually uses layers is treated as 1DArray TextureType tex_type = config.texture_type; - if (tex_type == TextureType::Texture1D && - (config.Depth() > 1 || config.BaseLayer() != 0)) { + if (tex_type == TextureType::Texture1D && (config.Depth() > 1 || config.BaseLayer() != 0)) { tex_type = TextureType::Texture1DArray; } switch (tex_type) { @@ -113,7 +111,7 @@ ImageInfo::ImageInfo(const TICEntry& config) noexcept { resources.layers = 1; break; default: - ASSERT_MSG(false, "Invalid texture_type={}", static_cast<int>(config.texture_type.Value())); + ASSERT_MSG(false, "Invalid texture_type={}", static_cast<int>(tex_type)); break; } if (num_samples > 1) { |
