Merge pull request #640 from pzychotic/fix-win-x86-build

Fix Windows x86 build
This commit is contained in:
Louis Gombert 2024-10-29 20:20:07 +00:00 committed by GitHub
commit d51ce964c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,7 +63,7 @@ inline void CheckError() {
template <typename T> struct FnPtr;
template <typename Ret, typename... Args>
struct FnPtr<Ret(Args...)> {
struct FnPtr<Ret GLFUNCCALL(Args...)> {
explicit FnPtr(std::string_view name, bool optional = false);
Ret operator()(Args... args) const {
@ -99,7 +99,7 @@ static void LoadGLFnPtrs() {
}
template<typename Ret, typename... Args>
FnPtr<Ret(Args...)>::FnPtr(std::string_view name, bool optional) : fn_{} {
FnPtr<Ret GLFUNCCALL(Args...)>::FnPtr(std::string_view name, bool optional) : fn_{} {
inits_.push_back(std::make_tuple(reinterpret_cast<void**>(&fn_), name, optional));
}