mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 12:12:50 +01:00
Disable OpenGL on macOS
This commit is contained in:
parent
6d737e61fd
commit
29a6db8960
@ -96,7 +96,11 @@ struct cfg_root : cfg::node
|
||||
{
|
||||
node_video(cfg::node* _this) : cfg::node(_this, "Video") {}
|
||||
|
||||
#ifdef __APPLE__
|
||||
cfg::_enum<video_renderer> renderer{ this, "Renderer", video_renderer::vulkan };
|
||||
#else
|
||||
cfg::_enum<video_renderer> renderer{ this, "Renderer", video_renderer::opengl };
|
||||
#endif
|
||||
|
||||
cfg::_enum<video_resolution> resolution{ this, "Resolution", video_resolution::_720 };
|
||||
cfg::_enum<video_aspect> aspect_ratio{ this, "Aspect ratio", video_aspect::_16_9 };
|
||||
|
@ -71,7 +71,9 @@ void headless_application::InitializeCallbacks()
|
||||
g_fxo->init<rsx::thread, named_thread<NullGSRender>>();
|
||||
break;
|
||||
}
|
||||
#if not defined(__APPLE__)
|
||||
case video_renderer::opengl:
|
||||
#endif
|
||||
#if defined(HAVE_VULKAN)
|
||||
case video_renderer::vulkan:
|
||||
#endif
|
||||
|
@ -332,11 +332,13 @@ void gui_application::InitializeCallbacks()
|
||||
g_fxo->init<rsx::thread, named_thread<NullGSRender>>();
|
||||
break;
|
||||
}
|
||||
#if not defined(__APPLE__)
|
||||
case video_renderer::opengl:
|
||||
{
|
||||
g_fxo->init<rsx::thread, named_thread<GLGSRender>>();
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
#if defined(HAVE_VULKAN)
|
||||
case video_renderer::vulkan:
|
||||
{
|
||||
|
@ -104,6 +104,10 @@ render_creator::render_creator(QObject *parent) : QObject(parent)
|
||||
OpenGL = render_info();
|
||||
NullRender = render_info();
|
||||
|
||||
#ifdef __APPLE__
|
||||
OpenGL.supported = false;
|
||||
#endif
|
||||
|
||||
renderers = { &Vulkan, &OpenGL, &NullRender };
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user