From 88b8830e8b3eebfac34efb033fe85a2e4ad34e14 Mon Sep 17 00:00:00 2001 From: nillerusr Date: Tue, 1 Mar 2022 22:53:30 +0300 Subject: [PATCH] ToGLES: add hard float support --- public/togles/linuxwin/glentrypoints.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/togles/linuxwin/glentrypoints.h b/public/togles/linuxwin/glentrypoints.h index a7874463..fa5a4cf8 100644 --- a/public/togles/linuxwin/glentrypoints.h +++ b/public/togles/linuxwin/glentrypoints.h @@ -322,10 +322,18 @@ public: #define GL_FUNC(ext,req,ret,fn,arg,call) CDynamicFunctionOpenGL< req, ret (*) arg, ret > fn; #define GL_FUNC_VOID(ext,req,fn,arg,call) CDynamicFunctionOpenGL< req, void (*) arg, void > fn; #else + +#ifdef LOAD_HARDFP #define _APIENTRY __attribute__((pcs("aapcs"))) APIENTRY #define GL_EXT(x,glmajor,glminor) bool m_bHave_##x; #define GL_FUNC(ext,req,ret,fn,arg,call) CDynamicFunctionOpenGL< req, ret (_APIENTRY *) arg, ret > fn; #define GL_FUNC_VOID(ext,req,fn,arg,call) CDynamicFunctionOpenGL< req, void (_APIENTRY *) arg, void > fn; +#else +#define GL_EXT(x,glmajor,glminor) bool m_bHave_##x; +#define GL_FUNC(ext,req,ret,fn,arg,call) CDynamicFunctionOpenGL< req, ret (APIENTRY *) arg, ret > fn; +#define GL_FUNC_VOID(ext,req,fn,arg,call) CDynamicFunctionOpenGL< req, void (APIENTRY *) arg, void > fn; +#endif + #endif #include "togles/glfuncs.inl" #undef GL_FUNC_VOID