Merge "SurfaceFlinger: fix releaseBuffer in updateTexImage"
This commit is contained in:
commit
23e81a2103
@ -69,7 +69,7 @@ status_t SurfaceFlingerConsumer::updateTexImage(BufferRejecter* rejecter)
|
||||
// reject buffers which have the wrong size
|
||||
int buf = item.mBuf;
|
||||
if (rejecter && rejecter->reject(mSlots[buf].mGraphicBuffer, item)) {
|
||||
releaseBufferLocked(buf, item.mGraphicBuffer, EGL_NO_SYNC_KHR);
|
||||
releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, EGL_NO_SYNC_KHR);
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user