Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

video_core: eliminate constant ternary

Valeri42b0e8cadfa7
diff --git a/src/video_core/textures/texture.h b/src/video_core/textures/texture.h
index 1a93994555..7994cb859e 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};
}
}