From a5b3b7ce6a49d552de2aa4af8d9dad160efd6256 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Tue, 4 Feb 2025 00:38:49 +0100 Subject: Upgrade asl --- hk21/game/gpu.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'hk21') diff --git a/hk21/game/gpu.cpp b/hk21/game/gpu.cpp index d8533be..3fe0a8b 100644 --- a/hk21/game/gpu.cpp +++ b/hk21/game/gpu.cpp @@ -180,8 +180,7 @@ static asl::status_or find_physical_device(VkInstance instan VkPhysicalDeviceProperties prps; vkGetPhysicalDeviceProperties(physical_device, &prps); - // @Todo(asl) Add from_zstr to asl::string_view - asl::string_view name{prps.deviceName, asl::strlen(prps.deviceName)}; + auto name = asl::string_view::from_zstr(prps.deviceName); if (prps.apiVersion < kTargetVersion) { -- cgit