revert between 56095 -> 55830 in arch
[AROS.git] / workbench / libs / mesa / src / gallium / targets / egl-static / st_GL.c
blob6b9fc7b9944437fce15f8ebce9a4d32c27d56356
1 #include <proto/exec.h>
2 #if !defined(__mc68000)
3 #include <proto/gl.h>
4 #endif
5 #include <aros/symbolsets.h>
7 #include "egl_st.h"
9 struct Library * GLBase = NULL;
11 PUBLIC struct st_api * st_gl_api_create(void)
13 #if !defined(__mc68000)
14 if (!GLBase)
15 GLBase = OpenLibrary("gl.library", 20L);
17 if (GLBase)
18 return (struct st_api *) GetOpenGLStateTrackerApi();
19 else
20 #endif
21 return NULL;
24 static VOID CloseMesa()
26 if (GLBase)
28 CloseLibrary(GLBase);
29 GLBase = NULL;
33 ADD2EXPUNGELIB(CloseMesa, 5)