summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglglobals.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/main/eglglobals.h')
-rw-r--r--src/egl/main/eglglobals.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/egl/main/eglglobals.h b/src/egl/main/eglglobals.h
index c25ab3e35b5..c16baa2d6bd 100644
--- a/src/egl/main/eglglobals.h
+++ b/src/egl/main/eglglobals.h
@@ -12,6 +12,7 @@ struct _egl_thread_info
{
EGLint LastError;
_EGLContext *CurrentContext;
+ EGLenum CurrentAPI;
};
@@ -28,8 +29,12 @@ struct _egl_global
EGLScreenMESA FreeScreenHandle;
- /* XXX temporary */
- _EGLThreadInfo ThreadInfo;
+ /* XXX these may be temporary */
+ EGLBoolean OpenGLESAPISupported;
+ EGLBoolean OpenVGAPISupported;
+
+ /* XXX temporary - should be thread-specific data (TSD) */
+ _EGLThreadInfo *ThreadInfo;
};
@@ -45,6 +50,14 @@ _eglDestroyGlobals(void);
extern _EGLThreadInfo *
+_eglNewThreadInfo(void);
+
+
+extern void
+_eglDeleteThreadData(_EGLThreadInfo *t);
+
+
+extern _EGLThreadInfo *
_eglGetCurrentThread(void);