1
0
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:
nastys 2022-01-10 14:37:26 +01:00 committed by Ivan
parent 6d737e61fd
commit 29a6db8960
4 changed files with 12 additions and 0 deletions

View File

@ -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 };

View File

@ -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

View File

@ -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:
{

View File

@ -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 };
}