diff options
Diffstat (limited to 'src/egl/main/eglimage.c')
-rw-r--r-- | src/egl/main/eglimage.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/egl/main/eglimage.c b/src/egl/main/eglimage.c index af4a29fb0e2..9625d2ae84b 100644 --- a/src/egl/main/eglimage.c +++ b/src/egl/main/eglimage.c @@ -81,8 +81,7 @@ _eglParseImageAttribList(_EGLImageAttribs *attrs, _EGLDisplay *dpy, EGLBoolean _eglInitImage(_EGLImage *img, _EGLDisplay *dpy) { - memset(img, 0, sizeof(_EGLImage)); - img->Resource.Display = dpy; + _eglInitResource(&img->Resource, sizeof(*img), dpy); return EGL_TRUE; } |