From: Chia-I Wu Date: Wed, 19 Feb 2014 05:04:04 +0000 (+0800) Subject: egl: clarify what _eglInitResource does X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4695f64895ed016e8c13b87315fb28fd91a26668;p=mesa.git egl: clarify what _eglInitResource does It is a helper called from the initializers of its subclasses. --- 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)