Support both methods of EGL context depending on device