I am trying to use GLSurfaceView
on Android and experiencing problems.
I am using the code from this OpenGL article.
It works well but when I rotate the device, I notice that the allocated memory is growing.
So I use MAT to check if I have a memory leak and found that there are multiple Activity
instances there. If I use dominator tree, I found multiple GLThread
objects (but only one is running).
So is this an android GLSurfaceview
bug or I'm misunderstanding something about GLSurfaceView
?