Skip to content

Commit 927dc6d

Browse files
authored
vk_platform: Fix incorrect type for MVK debug flag. (#1993)
1 parent f418297 commit 927dc6d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/video_core/renderer_vulkan/vk_platform.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ vk::UniqueInstance CreateInstance(Frontend::WindowSystemType window_type, bool e
283283
Common::FS::GetUserPathString(Common::FS::PathType::LogDir);
284284
const char* log_path = crash_diagnostic_path.c_str();
285285
vk::Bool32 enable_force_barriers = vk::True;
286+
#ifdef __APPLE__
287+
const vk::Bool32 mvk_debug_mode = enable_crash_diagnostic ? vk::True : vk::False;
288+
#endif
286289

287290
const std::array layer_setings = {
288291
vk::LayerSettingEXT{
@@ -356,7 +359,7 @@ vk::UniqueInstance CreateInstance(Frontend::WindowSystemType window_type, bool e
356359
.pSettingName = "MVK_CONFIG_DEBUG",
357360
.type = vk::LayerSettingTypeEXT::eBool32,
358361
.valueCount = 1,
359-
.pValues = &enable_crash_diagnostic,
362+
.pValues = &mvk_debug_mode,
360363
}
361364
#endif
362365
};

0 commit comments

Comments
 (0)