summaryrefslogtreecommitdiffstats
path: root/src/egl/main/egldisplay.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-02-19 13:04:04 +0800
committerChia-I Wu <[email protected]>2014-02-19 13:08:54 +0800
commit4695f64895ed016e8c13b87315fb28fd91a26668 (patch)
treeac5d9ba52fd47ef6888ae9f81e19d65b9c50c38f /src/egl/main/egldisplay.c
parentdc97e54d97ab9a3816a03a656c1ed530a046da0d (diff)
egl: clarify what _eglInitResource does
It is a helper called from the initializers of its subclasses.
Diffstat (limited to 'src/egl/main/egldisplay.c')
-rw-r--r--src/egl/main/egldisplay.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c
index 97ad8652f5a..bed7663efc5 100644
--- a/src/egl/main/egldisplay.c
+++ b/src/egl/main/egldisplay.c
@@ -375,7 +375,11 @@ _eglCheckResource(void *res, _EGLResourceType type, _EGLDisplay *dpy)
/**
- * Initialize a display resource.
+ * Initialize a display resource. The size of the subclass object is
+ * specified.
+ *
+ * This is supposed to be called from the initializers of subclasses, such as
+ * _eglInitContext or _eglInitSurface.
*/
void
_eglInitResource(_EGLResource *res, EGLint size, _EGLDisplay *dpy)