GL/Context: Fix surfaceless context creation

This commit is contained in:
Stenzek
2023-11-21 17:04:45 +10:00
parent bbeae07478
commit a80ffc9c7d
2 changed files with 5 additions and 1 deletions

View File

@ -133,6 +133,8 @@ std::unique_ptr<GL::Context> Context::Create(const WindowInfo& wi, const Version
if (wi.type == WindowInfo::Type::Wayland)
context = ContextEGLWayland::Create(wi, versions_to_try, num_versions_to_try);
#endif
if (wi.type == WindowInfo::Type::Surfaceless)
context = ContextEGL::Create(wi, versions_to_try, num_versions_to_try);
#endif
if (!context)