mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-27 18:02:16 +00:00
fix apple crash?
This commit is contained in:
@@ -432,11 +432,10 @@ VkResult Free(VkDevice device, VkCommandPool handle, Span<VkCommandBuffer> buffe
|
|||||||
|
|
||||||
Instance Instance::Create(u32 version, Span<const char*> layers, Span<const char*> extensions,
|
Instance Instance::Create(u32 version, Span<const char*> layers, Span<const char*> extensions,
|
||||||
InstanceDispatch& dispatch) {
|
InstanceDispatch& dispatch) {
|
||||||
#ifdef __APPLE__
|
VkFlags ci_flags{};
|
||||||
constexpr VkFlags ci_flags{VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR};
|
// #ifdef __APPLE__
|
||||||
#else
|
// ci_flags |= VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR;
|
||||||
constexpr VkFlags ci_flags{};
|
// #endif
|
||||||
#endif
|
|
||||||
// DO NOT TOUCH, breaks RNDA3!!
|
// DO NOT TOUCH, breaks RNDA3!!
|
||||||
// Don't know why, but gloom + yellow line glitch appears
|
// Don't know why, but gloom + yellow line glitch appears
|
||||||
const VkApplicationInfo application_info{
|
const VkApplicationInfo application_info{
|
||||||
@@ -463,6 +462,7 @@ Instance Instance::Create(u32 version, Span<const char*> layers, Span<const char
|
|||||||
if (!Proc(dispatch.vkDestroyInstance, dispatch, "vkDestroyInstance", instance)) {
|
if (!Proc(dispatch.vkDestroyInstance, dispatch, "vkDestroyInstance", instance)) {
|
||||||
// We successfully created an instance but the destroy function couldn't be loaded.
|
// We successfully created an instance but the destroy function couldn't be loaded.
|
||||||
// This is a good moment to panic.
|
// This is a good moment to panic.
|
||||||
|
LOG_ERROR(Render_Vulkan, "No vkDestroyInstance found");
|
||||||
throw vk::Exception(VK_ERROR_INITIALIZATION_FAILED);
|
throw vk::Exception(VK_ERROR_INITIALIZATION_FAILED);
|
||||||
}
|
}
|
||||||
return Instance(instance, dispatch);
|
return Instance(instance, dispatch);
|
||||||
|
|||||||
Reference in New Issue
Block a user