Set vulkan to default renderer whenever we have vulkan support

This commit is contained in:
Megamouse 2025-03-08 09:28:15 +01:00
parent fa5a16e9fc
commit b3f5ed55a1
2 changed files with 4 additions and 6 deletions

View file

@ -119,13 +119,11 @@ struct cfg_root : cfg::node
{ {
node_video(cfg::node* _this) : cfg::node(_this, "Video") {} node_video(cfg::node* _this) : cfg::node(_this, "Video") {}
cfg::_enum<video_renderer> renderer{ this, "Renderer", #if defined(HAVE_VULKAN)
#if defined(ANDROID) || defined(__APPLE__) cfg::_enum<video_renderer> renderer{ this, "Renderer", video_renderer::vulkan };
video_renderer::vulkan
#else #else
video_renderer::opengl // TODO: Is it still actual? cfg::_enum<video_renderer> renderer{ this, "Renderer", video_renderer::opengl };
#endif #endif
};
cfg::_enum<video_resolution> resolution{ this, "Resolution", video_resolution::_720p }; cfg::_enum<video_resolution> resolution{ this, "Resolution", video_resolution::_720p };
cfg::_enum<video_aspect> aspect_ratio{ this, "Aspect ratio", video_aspect::_16_9 }; cfg::_enum<video_aspect> aspect_ratio{ this, "Aspect ratio", video_aspect::_16_9 };

View file

@ -310,7 +310,7 @@ void hid_pad_handler<Device>::update_devices()
#ifdef ANDROID #ifdef ANDROID
if (hid_device* dev = hid_libusb_wrap_sys_device(path, -1)) if (hid_device* dev = hid_libusb_wrap_sys_device(path, -1))
#else #else
if (hid_device* dev = hid_open_path(path)) if (hid_device* dev = hid_open_path(path.c_str()))
#endif #endif
{ {
if (const hid_device_info* info = hid_get_device_info(dev)) if (const hid_device_info* info = hid_get_device_info(dev))