Check error return from _eglInitPbufferSurface() correctly
authorJon Smirl <jonsmirl@gmail.com>
Tue, 17 May 2005 03:48:38 +0000 (03:48 +0000)
committerJon Smirl <jonsmirl@gmail.com>
Tue, 17 May 2005 03:48:38 +0000 (03:48 +0000)
src/mesa/drivers/dri/fb/fb_egl.c

index 62e26021c5a145628ef23a425624555137b54f3a..79640bbc6181115e817836dff28485c8749ec961 100644 (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;
    }