Merge "SurfaceTexture: eglDestroySync after duping its fd" into jb-mr1-dev

This commit is contained in:
Jamie Gennis 2012-09-12 11:54:52 -07:00 committed by Android (Google) Code Review
commit a0931d6575

View File

@ -478,6 +478,7 @@ status_t SurfaceTexture::syncForReleaseLocked(EGLDisplay dpy) {
} }
glFlush(); glFlush();
int fenceFd = eglDupNativeFenceFDANDROID(dpy, sync); int fenceFd = eglDupNativeFenceFDANDROID(dpy, sync);
eglDestroySyncKHR(dpy, sync);
if (fenceFd == EGL_NO_NATIVE_FENCE_FD_ANDROID) { if (fenceFd == EGL_NO_NATIVE_FENCE_FD_ANDROID) {
ST_LOGE("syncForReleaseLocked: error dup'ing native fence " ST_LOGE("syncForReleaseLocked: error dup'ing native fence "
"fd: %#x", eglGetError()); "fd: %#x", eglGetError());