diff options
author | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2022-11-05 22:38:23 +0100 |
---|---|---|
committer | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2022-11-05 22:38:23 +0100 |
commit | 659b7214c72fec4da58598631d3a753840a84afc (patch) | |
tree | 45a01c57867c00334c967a8ab41b6029e68479fb /src | |
parent | 9a5e88491344cc3e53547b447f37156a514f9a24 (diff) |
Use WGL for GL context creation on Windows ARM64 as well.
This may not work, as I'm not sure why the code originally did as it
did. But this at least lets it compile, we'll need someone with a real
Windows ARM device to test this as I only have a VM with no GPU
acceleration.
Diffstat (limited to 'src')
-rw-r--r-- | src/frontend/duckstation/gl/context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/duckstation/gl/context.cpp b/src/frontend/duckstation/gl/context.cpp index 98e6bd1..9f21cd6 100644 --- a/src/frontend/duckstation/gl/context.cpp +++ b/src/frontend/duckstation/gl/context.cpp @@ -10,7 +10,7 @@ #endif Log_SetChannel(GL::Context); -#if defined(_WIN32) && !defined(_M_ARM64) +#if defined(_WIN32) #include "context_wgl.h" #elif defined(__APPLE__) #include "context_agl.h" @@ -66,7 +66,7 @@ std::unique_ptr<GL::Context> Context::Create(const WindowInfo& wi, const Version } std::unique_ptr<Context> context; -#if defined(_WIN32) && !defined(_M_ARM64) +#if defined(_WIN32) context = ContextWGL::Create(wi, versions_to_try, num_versions_to_try); #elif defined(__APPLE__) context = ContextAGL::Create(wi, versions_to_try, num_versions_to_try); |