Code example for EGLContext

Methods: getGL

0
            int error = mEgl.eglGetError();
            Log.e(LOG_TAG,"createWindowSurface returned error");
            return false; 
        } 
 
        if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
            Log.e(LOG_TAG, "eglMakeCurrent failed " +
                    GLUtils.getEGLErrorString(mEgl.eglGetError()));
            return false; 
        } 
 
        mGL = (GL10) mEglContext.getGL();
 
        return true; 
    } 
 
    private void finishGL() { 
        if (mEgl == null || mEglDisplay == null) {
            // Nothing to free 
            return; 
Contextual code suggestions in your IDE  Get Codota for Java