OSDN Git Service

egl: Unlink image before destroying it.
authorChia-I Wu <olvaffe@gmail.com>
Thu, 22 Oct 2009 09:00:59 +0000 (17:00 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Thu, 22 Oct 2009 09:00:59 +0000 (17:00 +0800)
src/egl/main/eglapi.c

index 753399f..6baf700 100644 (file)
@@ -992,6 +992,7 @@ EGLBoolean eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR image)
    if (!img)
       return _eglError(EGL_BAD_PARAMETER, __FUNCTION__);
 
+   _eglUnlinkImage(img);
    return drv->API.DestroyImageKHR(drv, disp, img);
 }