1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-07-03 06:24:32 +00:00

cleanup #2, no functional changes

This commit is contained in:
fgenesis 2016-09-26 01:54:45 +02:00
parent 8f524279b3
commit 58df545ec8
4 changed files with 15 additions and 144 deletions

View file

@ -16,8 +16,11 @@
#define GLAPIENTRY
#endif
#include "glext.h"
PFNGLGENERATEMIPMAPEXTPROC glGenerateMipmapEXT = NULL;
unsigned g_dbg_numRenderCalls = 0; // extern
@ -50,6 +53,10 @@ bool lookup_all_glsyms()
if (!lookup_glsym(#fn, (void **) &p##fn)) retval = false;
#include "OpenGLStubs.h"
#undef GL_FUNC
// optional functions
glGenerateMipmapEXT = (PFNGLGENERATEMIPMAPEXTPROC)SDL_GL_GetProcAddress("glGenerateMipmapEXT");
return retval;
}
#endif
@ -64,6 +71,8 @@ void unload_all_glsyms()
#include "OpenGLStubs.h"
#undef GL_FUNC
#endif
glGenerateMipmapEXT = NULL;
}
#endif