hi there,
i'm working on a gles based application, and all malloc'd spaces are cleanup at the program end ( i mean, space from the arm side )
the opengl part of the program ends with the sequence :
glflush ;
glfinish;
a last " eglSwapBuffers(display, surface);"
then
eglMakeCurrent( display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT );
eglDestroyContext(display,context);
eglDestroySurface(display,surface);
eglTerminate(display);
all with no errors,
but when i check the gpu side allocations ( vcdbg reloc ) , i can see that a block of data remains and is not cleared.
each time my program is run and ends, one more of this blocks appear.
looks like a 'memory leak' ..
the bloc appears as a block of 149504 , with a name : 'GLSL_COPY_CONTEXT_T.mh_blob'
so the question is : is my program closed safely with successive commands i listed ?
- do i have to manage some cleanup of the GL resources in the GPU side before closing everything ?
- or is a normal thing to have that blobs remaining on the gpu side ( maybe it will be free'd and reallocated later if more space is needed ? )
thanks for your answers