public EGLCONTEXT CreateNewContext( EGLDisplay eglDisplay, EGLConfig glConfig, EGLCONTEXT shareList )
{
int[] contexAttrs = new int[] { 1, 2, EGL10Consts.EglNone };
EGLCONTEXT context = null;
if ( eglDisplay == null )
{
context = EGLCONTEXT.EGL11.EglCreateContext( _glDisplay, glConfig, shareList, contexAttrs );
}
else
{
context = EGLCONTEXT.EGL11.EglCreateContext( _glDisplay, glConfig, null, contexAttrs );
}
if ( context == null )
{
throw new AxiomException( "Fail to create New context" );
}
return context;
}