mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-22 05:07:01 +02:00
fix apple crash?
This commit is contained in:
parent
c3be6fea9f
commit
ebf7eeee7e
1 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue