mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
Check error return from _eglInitPbufferSurface() correctly
This commit is contained in:
parent
40c1c723fb
commit
2ec2e94e2e
1 changed files with 1 additions and 1 deletions
|
|
@ -529,7 +529,7 @@ fbCreatePbufferSurface(_EGLDriver *drv, EGLDisplay dpy, EGLConfig config, const
|
||||||
return EGL_NO_SURFACE;
|
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);
|
free(surf);
|
||||||
return EGL_NO_SURFACE;
|
return EGL_NO_SURFACE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue