emulator opengles: Fixed bug in gralloc unregister_buffer
Reset the ashmemBase & mappedPid on unregister_buffer Change-Id: Ia209f88a15eb51edb39b1a799500d835b944bc87
This commit is contained in:
committed by
Guy Zadickario
parent
128f401e4f
commit
88ad268dd9
@@ -441,6 +441,8 @@ static int gralloc_unregister_buffer(gralloc_module_t const* module,
|
|||||||
if (err) {
|
if (err) {
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
cb->ashmemBase = NULL;
|
||||||
|
cb->mappedPid = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user