diff options
author | David Snopek <dsnopek@gmail.com> | 2022-10-22 20:29:15 -0500 |
---|---|---|
committer | David Snopek <dsnopek@gmail.com> | 2022-11-08 18:47:11 -0600 |
commit | 23603e409c04fd0238a45552ad7b07a175b528c6 (patch) | |
tree | d47525574fbccaaa60e50e84f29603945eef607d /platform/android | |
parent | 6d9546f16c505186196da677154de5f216b7eb9b (diff) |
Add support for OpenGL to OpenXR
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/display_server_android.cpp | 5 |
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; } |