2006-01-30 00:10:55 +00:00
|
|
|
#include <stdlib.h>
|
2005-04-22 22:09:39 +01:00
|
|
|
#include "eglglobals.h"
|
2009-08-10 07:16:32 +01:00
|
|
|
#include "egldisplay.h"
|
2009-07-17 18:41:02 +01:00
|
|
|
#include "egllog.h"
|
2005-04-22 22:09:39 +01:00
|
|
|
|
2008-08-04 23:30:04 +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) {
|
2005-05-04 04:33:21 +01:00
|
|
|
_eglGlobal.FreeScreenHandle = 1;
|
2005-04-22 22:09:39 +01:00
|
|
|
_eglGlobal.Initialized = EGL_TRUE;
|
2006-01-30 00:10:55 +00:00
|
|
|
|
2008-05-30 20:45:40 +01:00
|
|
|
_eglGlobal.ClientAPIsMask = 0x0;
|
2005-04-22 22:09:39 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Should call this via an atexit handler.
|
|
|
|
*/
|
|
|
|
void
|
|
|
|
_eglDestroyGlobals(void)
|
|
|
|
{
|
|
|
|
}
|