I used the below code from the link to create the opengles1.1
texture-view .
My app has like a view which few buttons with 3D models names if user clicks the button a new texture view is created.
If back is clicked user will be back the texture view is deleted.
Now the problem is after doing this for 5 to 6 times, the app crashes with following errors:
E/IMGSRV (18294): :0: PVRSRVAllocDeviceMem: Error 1 returned
E/IMGSRV (18294): :0: UCH_CodeHeapCreate: Out of device mem
E/IMGSRV (18294): :0: CreateSharedState: Failed to create USSE vertex code heap!
E/IMGSRV (18294):
E/IMGSRV (18294): :0: InitContext: CreateSharedState failed
E/IMGSRV (18294): :0: GLESCreateGC: Failed to init the gc
E/libEGL (18294): eglMakeCurrent:552 error 3009 (EGL_BAD_MATCH)
W/dalvikvm(18294): threadid=13: thread exiting with uncaught exception (group=0x41218930)
E/AndroidRuntime(18294): FATAL EXCEPTION: GLThread 1895
E/AndroidRuntime(18294): java.lang.RuntimeException: eglMakeCurrent failed EGL_BAD_MATCH
Can anyone please help me on this what am I doing wrong?