diff options
Diffstat (limited to 'src/egl/main/eglapi.c')
-rw-r--r-- | src/egl/main/eglapi.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 66fbbe219f3..d5e69a6e25c 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -208,18 +208,12 @@ _eglCheckMode(_EGLDisplay *disp, _EGLMode *m, const char *msg) /** * This is typically the first EGL function that an application calls. - * We initialize our global vars and create a private _EGLDisplay object. + * It associates a private _EGLDisplay object to the native display. */ EGLDisplay EGLAPIENTRY eglGetDisplay(EGLNativeDisplayType nativeDisplay) { - _EGLDisplay *dpy; - dpy = _eglFindDisplay(nativeDisplay); - if (!dpy) { - dpy = _eglNewDisplay(nativeDisplay); - if (dpy) - _eglLinkDisplay(dpy); - } + _EGLDisplay *dpy = _eglFindDisplay(nativeDisplay); return _eglGetDisplayHandle(dpy); } |