mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-07-20 22:02:22 +00:00
Implement libplacebo on MoltenVK
This commit is contained in:
@@ -74,11 +74,12 @@ static int __riscv_hwprobe(struct riscv_hwprobe *pairs, size_t pair_count,
|
||||
|
||||
Uint32 StreamUtils::getPlatformWindowFlags()
|
||||
{
|
||||
#if defined(Q_OS_DARWIN)
|
||||
return SDL_WINDOW_METAL;
|
||||
#elif defined(HAVE_LIBPLACEBO_VULKAN)
|
||||
#if defined(HAVE_LIBPLACEBO_VULKAN)
|
||||
// We'll fall back to GL if Vulkan fails
|
||||
return SDL_WINDOW_VULKAN;
|
||||
#elif defined(Q_OS_DARWIN)
|
||||
// Vulkan needs to supersede Metal, otherwise the Vulkan library won't be loaded
|
||||
return SDL_WINDOW_METAL;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user