Skip to content

reset EGL objects when it has been destroyed

Chaojiang Luo requested to merge (removed):uos/dev_03 into master

We meet an issue on ARM+Mali platform, the eglSurface has been destroyed by eglDestroySurface, but the eglSurface is still used by eglMakeCurrent. This occurred when the output has been removed, but the eglSurface of the output is still used. The final result is the objects in GPU can not been released really, thus caused a memory leak. It seems the issue is related to GPU driver, but we hop to add this patch to avoid any potential issues.

Signed-off-by: Chaojiang Luo luochaojiang@uniontech.com

Edited by Rodney Dawes

Merge request reports