From 4fd655cb466614d10374c13764f08ab7fa6816b8 Mon Sep 17 00:00:00 2001 From: Valeri Date: Thu, 19 Aug 2021 21:22:05 +0300 Subject: video_core: eliminate constant ternary `via_header_index` is already checked above, so it would never be true in this branch --- src/video_core/textures/texture.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/video_core') diff --git a/src/video_core/textures/texture.h b/src/video_core/textures/texture.h index 1a9399455..7994cb859 100644 --- a/src/video_core/textures/texture.h +++ b/src/video_core/textures/texture.h @@ -159,7 +159,7 @@ static_assert(sizeof(TextureHandle) == 4, "TextureHandle has wrong size"); return {raw, raw}; } else { const Tegra::Texture::TextureHandle handle{raw}; - return {handle.tic_id, via_header_index ? handle.tic_id : handle.tsc_id}; + return {handle.tic_id, handle.tsc_id}; } } -- cgit v1.2.3