diff --git a/app/src/main/cpp/skyline/gpu.cpp b/app/src/main/cpp/skyline/gpu.cpp index 3a0f23f1..203d7e0e 100644 --- a/app/src/main/cpp/skyline/gpu.cpp +++ b/app/src/main/cpp/skyline/gpu.cpp @@ -100,7 +100,7 @@ namespace skyline::gpu { auto first{type.find('[')}; auto last{type.find(']', first)}; if (first != std::string_view::npos && last != std::string_view::npos) { - type = type.substr(first + 2, last != std::string_view::npos ? last - 4 : last); + type = type.substr(first + 2, last != std::string_view::npos ? (last - first) - 3 : last); switch (util::Hash(type)) { IGNORE_VALIDATION("UNASSIGNED-CoreValidation-SwapchainPreTransform"); // We handle transformation via Android APIs directly