summaryrefslogtreecommitdiff
path: root/hk21
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2025-02-04 00:38:49 +0100
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2025-02-04 00:38:49 +0100
commita5b3b7ce6a49d552de2aa4af8d9dad160efd6256 (patch)
tree884cea4ec4168f7b294dbe5f3587b1933ba13bfe /hk21
parentef3bf642b5231e6622bf8efefae1c97efee809b6 (diff)
Upgrade asl
Diffstat (limited to 'hk21')
-rw-r--r--hk21/game/gpu.cpp3
1 files changed, 1 insertions, 2 deletions
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<PhysicalDeviceInfo> 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)
{