summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@gmail.com>2005-05-17 03:48:38 +0000
committerJon Smirl <jonsmirl@gmail.com>2005-05-17 03:48:38 +0000
commit2ec2e94e2e22dff7b2912fb87c6ffe12dcb301f7 (patch)
tree87b468889c16bbe665519840ee4f538f400c6cea /src
parent40c1c723fb77b0d9c1a1958498597403d2238ee7 (diff)
downloadexternal_mesa3d-2ec2e94e2e22dff7b2912fb87c6ffe12dcb301f7.zip
external_mesa3d-2ec2e94e2e22dff7b2912fb87c6ffe12dcb301f7.tar.gz
external_mesa3d-2ec2e94e2e22dff7b2912fb87c6ffe12dcb301f7.tar.bz2
Check error return from _eglInitPbufferSurface() correctly
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/fb/fb_egl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/fb/fb_egl.c b/src/mesa/drivers/dri/fb/fb_egl.c
index 62e2602..79640bb 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;
}