From 659b7214c72fec4da58598631d3a753840a84afc Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Sat, 5 Nov 2022 22:38:23 +0100 Subject: [PATCH] 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. --- src/frontend/duckstation/gl/context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/duckstation/gl/context.cpp b/src/frontend/duckstation/gl/context.cpp index 98e6bd19..9f21cd69 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 Context::Create(const WindowInfo& wi, const Version } std::unique_ptr 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);