Merge "SurfaceTexture: fix an out of bounds array write" into jb-mr1-dev

This commit is contained in:
Jamie Gennis 2012-09-21 13:43:23 -07:00 committed by Android (Google) Code Review
commit 16cfa2e38b

View File

@ -200,7 +200,7 @@ status_t SurfaceTexture::releaseBufferLocked(int buf, EGLDisplay display,
status_t err = ConsumerBase::releaseBufferLocked(buf, mEglDisplay, status_t err = ConsumerBase::releaseBufferLocked(buf, mEglDisplay,
eglFence); eglFence);
mEglSlots[mCurrentTexture].mEglFence = EGL_NO_SYNC_KHR; mEglSlots[buf].mEglFence = EGL_NO_SYNC_KHR;
return err; return err;
} }