From 4695f64895ed016e8c13b87315fb28fd91a26668 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 19 Feb 2014 13:04:04 +0800 Subject: [PATCH] egl: clarify what _eglInitResource does It is a helper called from the initializers of its subclasses. --- src/egl/main/egldisplay.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- 2.30.2