From 23603e409c04fd0238a45552ad7b07a175b528c6 Mon Sep 17 00:00:00 2001 From: David Snopek Date: Sat, 22 Oct 2022 20:29:15 -0500 Subject: Add support for OpenGL to OpenXR --- platform/android/display_server_android.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'platform/android') diff --git a/platform/android/display_server_android.cpp b/platform/android/display_server_android.cpp index 08369e735d..967f5c7dae 100644 --- a/platform/android/display_server_android.cpp +++ b/platform/android/display_server_android.cpp @@ -321,6 +321,11 @@ int64_t DisplayServerAndroid::window_get_native_handle(HandleType p_handle_type, case WINDOW_VIEW: { return 0; // Not supported. } +#ifdef GLES3_ENABLED + case OPENGL_CONTEXT: { + return eglGetCurrentContext(); + } +#endif default: { return 0; } -- cgit v1.2.3