use native egl lib instead of java api