Explorar o código

video_core: eliminate constant ternary

`via_header_index` is already checked above, so it would never be true in this branch
Valeri %!s(int64=5) %!d(string=hai) anos
pai
achega
4fd655cb46
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/video_core/textures/texture.h

+ 1 - 1
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};
     }
 }