Code example for EGL10

Methods: eglGetError, eglSwapBuffers, eglWaitGL

0
			} 
 
			m_surfaceLock.lock( );
			// Wait for pending GL commands to finish and draw the surface 
			// onto the screen. 
			m_egl.eglWaitGL();
 
			m_egl.eglSwapBuffers( EGLManager.getDisplay( ), m_surface );
			int eglError = m_egl.eglGetError( );
			if( eglError != EGL10.EGL_SUCCESS )
			{ 
				Log.i( "EGLView", "Error while swapping buffers. EGL Error: " + eglError );
			} 
 
			m_surfaceLock.unlock( );
		} 
 
		/** 
		 * Creates a new surface associated with this EGL state. 
		 * 
		 * @param holder Reference to the holder and controller of the SurfaceView