Check error return from _eglInitPbufferSurface() correctly

This commit is contained in:
Jon Smirl 2005-05-17 03:48:38 +00:00
parent 40c1c723fb
commit 2ec2e94e2e

View file

@ -529,7 +529,7 @@ fbCreatePbufferSurface(_EGLDriver *drv, EGLDisplay dpy, EGLConfig config, const
return EGL_NO_SURFACE;
}
if (_eglInitPbufferSurface(&surf->Base, drv, dpy, config, attrib_list)) {
if (_eglInitPbufferSurface(&surf->Base, drv, dpy, config, attrib_list) == EGL_NO_SURFACE) {
free(surf);
return EGL_NO_SURFACE;
}