GL/Context: Don't use WGL on Windows/ARM64

This commit is contained in:
Connor McLaughlin 2020-10-13 21:32:13 +10:00
parent df15229eec
commit 69d29d7395

View file

@ -9,7 +9,7 @@
#endif #endif
Log_SetChannel(GL::Context); Log_SetChannel(GL::Context);
#if defined(WIN32) #if defined(WIN32) && !defined(_M_ARM64)
#include "context_wgl.h" #include "context_wgl.h"
#elif defined(__APPLE__) && !defined(LIBERTRO) #elif defined(__APPLE__) && !defined(LIBERTRO)
#include "context_agl.h" #include "context_agl.h"
@ -75,7 +75,7 @@ std::unique_ptr<GL::Context> Context::Create(const WindowInfo& wi, const Version
} }
std::unique_ptr<Context> context; std::unique_ptr<Context> context;
#if defined(WIN32) #if defined(WIN32) && !defined(_M_ARM64)
context = ContextWGL::Create(wi, versions_to_try, num_versions_to_try); context = ContextWGL::Create(wi, versions_to_try, num_versions_to_try);
#elif defined(__APPLE__) && !defined(LIBRETRO) #elif defined(__APPLE__) && !defined(LIBRETRO)
context = ContextAGL::Create(wi, versions_to_try, num_versions_to_try); context = ContextAGL::Create(wi, versions_to_try, num_versions_to_try);