eglglobals.c revision 621801abd287238f9a3209554bc84fec5d2e9ccd
1#include <stdlib.h> 2#include "eglglobals.h" 3#include "egldisplay.h" 4#include "egllog.h" 5 6struct _egl_global _eglGlobal = 7{ 8 EGL_FALSE 9}; 10 11/** 12 * Init the fields in the _eglGlobal struct 13 * May be safely called more than once. 14 */ 15void 16_eglInitGlobals(void) 17{ 18 if (!_eglGlobal.Initialized) { 19 _eglGlobal.FreeScreenHandle = 1; 20 _eglGlobal.Initialized = EGL_TRUE; 21 22 _eglGlobal.ClientAPIsMask = 0x0; 23 } 24} 25 26 27/** 28 * Should call this via an atexit handler. 29 */ 30void 31_eglDestroyGlobals(void) 32{ 33} 34