mesa/src/egl/main/eglglobals.c

34 lines
510 B
C
Raw Normal View History

2006-01-30 00:10:55 +00:00
#include <stdlib.h>
2005-04-22 22:09:39 +01:00
#include "eglglobals.h"
#include "egldisplay.h"
#include "egllog.h"
2005-04-22 22:09:39 +01:00
struct _egl_global _eglGlobal =
{
EGL_FALSE
};
2005-04-22 22:09:39 +01:00
/**
* Init the fields in the _eglGlobal struct
* May be safely called more than once.
*/
void
_eglInitGlobals(void)
{
if (!_eglGlobal.Initialized) {
_eglGlobal.FreeScreenHandle = 1;
2005-04-22 22:09:39 +01:00
_eglGlobal.Initialized = EGL_TRUE;
2006-01-30 00:10:55 +00:00
_eglGlobal.ClientAPIsMask = 0x0;
2005-04-22 22:09:39 +01:00
}
}
/**
* Should call this via an atexit handler.
*/
void
_eglDestroyGlobals(void)
{
}