From 09a961988daf106b895bb0890e7419256398ce95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Ro=C3=9F?= Date: Sun, 27 Oct 2024 15:49:21 +0100 Subject: [PATCH] [Renderer] Added missing calling convention in FnPtr template declaration This fixes compilation of Windows x86 builds when creating template instantiations of FnPtr with functions using __stdcall. --- renderer/dyna_gl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderer/dyna_gl.h b/renderer/dyna_gl.h index 3c435f06d..f4d3c6eac 100644 --- a/renderer/dyna_gl.h +++ b/renderer/dyna_gl.h @@ -63,7 +63,7 @@ inline void CheckError() { template struct FnPtr; template -struct FnPtr { +struct FnPtr { explicit FnPtr(std::string_view name, bool optional = false); Ret operator()(Args... args) const { @@ -99,7 +99,7 @@ static void LoadGLFnPtrs() { } template -FnPtr::FnPtr(std::string_view name, bool optional) : fn_{} { +FnPtr::FnPtr(std::string_view name, bool optional) : fn_{} { inits_.push_back(std::make_tuple(reinterpret_cast(&fn_), name, optional)); }