Support both methods of EGL context depending on prefs