Skip to content

Commit

Permalink
Fix mac compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
TothBenoit committed Jul 26, 2024
1 parent 46c9e3c commit 31cee2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/sdl/gl.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,12 @@
#include "GLImports.h"
#undef GL_IMPORT
#define GL_IMPORT(fun,t) fun = (PFNGL##t##PROC)SDL_GL_GetProcAddress(#fun); if( fun == NULL ) return 1
#ifndef __APPLE__
#define GL_IMPORT_OPT(fun, t) PFNGL##t##PROC fun = NULL; if ( !fun ) { fun = (PFNGL##t##PROC)SDL_GL_GetProcAddress(#fun); if( fun == NULL ) hl_error("function not resolved"); }
#else
#endif
#endif

#if !defined GL_IMPORT_OPT
#define GL_IMPORT_OPT(fun, t)
#define glMultiDrawElementsIndirectCountARB(...) hl_error("function not resolved");
#endif
Expand Down

0 comments on commit 31cee2a

Please sign in to comment.