diff --git a/src/egl/main/eglsurface.c b/src/egl/main/eglsurface.c index 4d715942731..874f318e966 100644 --- a/src/egl/main/eglsurface.c +++ b/src/egl/main/eglsurface.c @@ -521,7 +521,7 @@ _eglCreatePbufferFromClientBuffer(_EGLDriver *drv, EGLDisplay dpy, { if (buftype != EGL_OPENVG_IMAGE) { _eglError(EGL_BAD_PARAMETER, "eglCreatePbufferFromClientBuffer"); - return ELG_NO_SURFACE; + return EGL_NO_SURFACE; } return EGL_NO_SURFACE;