summaryrefslogtreecommitdiff
path: root/hk21/game
diff options
context:
space:
mode:
Diffstat (limited to 'hk21/game')
-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)
{