summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2022-10-22 20:29:15 -0500
committerDavid Snopek <dsnopek@gmail.com>2022-11-08 18:47:11 -0600
commit23603e409c04fd0238a45552ad7b07a175b528c6 (patch)
treed47525574fbccaaa60e50e84f29603945eef607d /platform/android
parent6d9546f16c505186196da677154de5f216b7eb9b (diff)
Add support for OpenGL to OpenXR
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/display_server_android.cpp5
1 files changed, 5 insertions, 0 deletions
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;
}