Skip to content

Commit 659b721

Browse files
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.
1 parent 9a5e884 commit 659b721

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/frontend/duckstation/gl/context.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#endif
1111
Log_SetChannel(GL::Context);
1212

13-
#if defined(_WIN32) && !defined(_M_ARM64)
13+
#if defined(_WIN32)
1414
#include "context_wgl.h"
1515
#elif defined(__APPLE__)
1616
#include "context_agl.h"
@@ -66,7 +66,7 @@ std::unique_ptr<GL::Context> Context::Create(const WindowInfo& wi, const Version
6666
}
6767

6868
std::unique_ptr<Context> context;
69-
#if defined(_WIN32) && !defined(_M_ARM64)
69+
#if defined(_WIN32)
7070
context = ContextWGL::Create(wi, versions_to_try, num_versions_to_try);
7171
#elif defined(__APPLE__)
7272
context = ContextAGL::Create(wi, versions_to_try, num_versions_to_try);

0 commit comments

Comments
 (0)