public void makeCurrent ( EGLSurface drawSurface , EGLSurface readSurface ) { if ( mEGLDisplay == EGL14 . EGL_NO_DISPLAY ) { // called makeCurrent() before create? Log . d ( TAG , "NOTE: makeCurrent w/o display" ) ; } if ( ! EGL14 . eglMakeCurrent ( mEGLDisplay , drawSurface , readSurface , mEGLContext ) ) { throw new RuntimeException ( "eglMakeCurrent(draw,read) failed" ) ; } }
Makes our EGL context current using the supplied draw and read surfaces .