summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglscreen.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-12-17 05:37:15 +0000
committerBrian Paul <[email protected]>2005-12-17 05:37:15 +0000
commitc9b4acfeb8044bfe3f9275cb51fed9ccd3651d95 (patch)
treea21dd494062479ea4bcf9a4dd92f23069719794a /src/egl/main/eglscreen.c
parent782291ab916dcb3f11fe8b7c934b1fd164c46020 (diff)
minor code movement
Diffstat (limited to 'src/egl/main/eglscreen.c')
-rw-r--r--src/egl/main/eglscreen.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/egl/main/eglscreen.c b/src/egl/main/eglscreen.c
index d8ec5b5f733..9c9a8377bf2 100644
--- a/src/egl/main/eglscreen.c
+++ b/src/egl/main/eglscreen.c
@@ -24,6 +24,19 @@
/**
+ * Return a new screen handle/ID.
+ * NOTE: we never reuse these!
+ */
+EGLScreenMESA
+_eglAllocScreenHandle(void)
+{
+ EGLScreenMESA s = _eglGlobal.FreeScreenHandle;
+ _eglGlobal.FreeScreenHandle++;
+ return s;
+}
+
+
+/**
* Initialize an _EGLScreen object to default values.
*/
void