Skip to content

Commit

Permalink
Use WGL for GL context creation on Windows ARM64 as well.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nadiaholmquist committed Nov 5, 2022
1 parent 9a5e884 commit 659b721
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/duckstation/gl/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 659b721

Please sign in to comment.