summaryrefslogtreecommitdiff
path: root/src/egl/main/egldisplay.h
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2010-01-26 15:16:49 +0800
committerChia-I Wu <olvaffe@gmail.com>2010-01-26 18:46:05 +0800
commitf65ed0a3097d91289ced44d53786506333122b55 (patch)
tree2a0a14058f5b5bc5d1c91129ca0825fcd6051a2e /src/egl/main/egldisplay.h
parentd21ee93fdb817a96b47b5dd4be925e23c19bb5a7 (diff)
egl: Use a boolean to indicate whether a resource is linked.
An unlinked resource may still be a current resource such as current surfaces. There might still be a need to know which display the unlinked resource belongs to.
Diffstat (limited to 'src/egl/main/egldisplay.h')
-rw-r--r--src/egl/main/egldisplay.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/egl/main/egldisplay.h b/src/egl/main/egldisplay.h
index 0f5d3a01bb..8f74ad23a8 100644
--- a/src/egl/main/egldisplay.h
+++ b/src/egl/main/egldisplay.h
@@ -19,7 +19,11 @@ enum _egl_resource_type {
*/
struct _egl_resource
{
+ /* which display the resource belongs to */
_EGLDisplay *Display;
+ EGLBoolean IsLinked;
+
+ /* used to link resources of the same type */
_EGLResource *Next;
};
@@ -179,7 +183,7 @@ _eglUnlinkResource(_EGLResource *res, _EGLResourceType type);
static INLINE EGLBoolean
_eglIsResourceLinked(_EGLResource *res)
{
- return (res->Display != NULL);
+ return res->IsLinked;
}