summaryrefslogtreecommitdiffstats
path: root/src/egl/main/egldisplay.h
diff options
context:
space:
mode:
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 0f5d3a01bbe..8f74ad23a87 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;
}