diff options
author | Brian Paul <[email protected]> | 2005-12-17 05:37:15 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-12-17 05:37:15 +0000 |
commit | c9b4acfeb8044bfe3f9275cb51fed9ccd3651d95 (patch) | |
tree | a21dd494062479ea4bcf9a4dd92f23069719794a /src/egl/main/eglscreen.c | |
parent | 782291ab916dcb3f11fe8b7c934b1fd164c46020 (diff) |
minor code movement
Diffstat (limited to 'src/egl/main/eglscreen.c')
-rw-r--r-- | src/egl/main/eglscreen.c | 13 |
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 |