how to create GLSurfaceView with a custom EGLSurface
creating a GLSurfaceView
and setting setEGLWindowSurfaceFactory()
to override createWindowSurface()
createWindowSurface()
must return javax.microedition.khronos.egl.EGLSurface
my surface is created using EGL14.eglCreateWindowSurface()
which returns android.opengl.EGLSurface
not javax.microedition.khronos.egl.EGLSurface
how can i return android.opengl.EGLSurface
?