From 2ec2e94e2e22dff7b2912fb87c6ffe12dcb301f7 Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Tue, 17 May 2005 03:48:38 +0000 Subject: Check error return from _eglInitPbufferSurface() correctly --- src/mesa/drivers/dri/fb/fb_egl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mesa/drivers/dri/fb/fb_egl.c b/src/mesa/drivers/dri/fb/fb_egl.c index 62e26021c5a..79640bbc618 100644 --- a/src/mesa/drivers/dri/fb/fb_egl.c +++ b/src/mesa/drivers/dri/fb/fb_egl.c @@ -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; } -- cgit v1.2.3