From 274723e20df15535da43036f7030c6e2d2f9b0ad Mon Sep 17 00:00:00 2001 From: Gregory Wells Date: Wed, 9 Jul 2025 21:09:04 -0400 Subject: [PATCH] load first OpenGL function --- projects/loader/src/gryphn_loader.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/projects/loader/src/gryphn_loader.c b/projects/loader/src/gryphn_loader.c index 21b2cd4..118fd82 100644 --- a/projects/loader/src/gryphn_loader.c +++ b/projects/loader/src/gryphn_loader.c @@ -6,6 +6,9 @@ #ifdef GN_API_METAL #include #endif +#ifdef GN_API_OPENGL +#include +#endif #include "stdio.h" #include "core/src/instance/gryphn_instance.h" @@ -21,7 +24,9 @@ gnInstanceFunctions loadAPIInstanceFunctions(gnRenderingAPI api) { case GN_RENDERINGAPI_SOFTWARE: return (gnInstanceFunctions){ NULL }; case GN_RENDERINGAPI_DIRECTX11: return (gnInstanceFunctions){ NULL }; case GN_RENDERINGAPI_DIRECTX12: return (gnInstanceFunctions){ NULL }; - case GN_RENDERINGAPI_OPENGL: return (gnInstanceFunctions){ NULL }; +#ifdef GN_API_OPENGL + case GN_RENDERINGAPI_OPENGL: return loadOpenGLInstanceFunctions(); +#endif #ifdef GN_API_METAL case GN_RENDERINGAPI_METAL: return loadMetalInstanceFunctions(); #endif