summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/fb
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/fb')
-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 62e26021c5..79640bbc61 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;
}