diff options
author | David Snopek <dsnopek@gmail.com> | 2022-12-04 13:07:51 -0600 |
---|---|---|
committer | David Snopek <dsnopek@gmail.com> | 2022-12-04 13:07:51 -0600 |
commit | 61cec0b023a87c61e4aeec3b79b723fd461bc8a4 (patch) | |
tree | 0015a5a8bf1c22bb97a65c7a11d5fa6d418fa338 /modules/openxr/extensions/openxr_opengl_extension.cpp | |
parent | 7bffdca41ccedd22eac831e916a02b890e90bb28 (diff) |
Clean up DisplayServerAndroid::window_get_native_handle() with the GLES3 renderer
Diffstat (limited to 'modules/openxr/extensions/openxr_opengl_extension.cpp')
-rw-r--r-- | modules/openxr/extensions/openxr_opengl_extension.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/openxr/extensions/openxr_opengl_extension.cpp b/modules/openxr/extensions/openxr_opengl_extension.cpp index 234c5f8391..3b7c130149 100644 --- a/modules/openxr/extensions/openxr_opengl_extension.cpp +++ b/modules/openxr/extensions/openxr_opengl_extension.cpp @@ -136,7 +136,7 @@ void *OpenXROpenGLExtension::set_session_create_and_get_next_pointer(void *p_nex graphics_binding_gl.type = XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR; graphics_binding_gl.next = p_next_pointer; - graphics_binding_gl.display = eglGetCurrentDisplay(); + graphics_binding_gl.display = (void *)display_server->window_get_native_handle(DisplayServer::DISPLAY_HANDLE); graphics_binding_gl.config = (EGLConfig)0; // https://github.com/KhronosGroup/OpenXR-SDK-Source/blob/master/src/tests/hello_xr/graphicsplugin_opengles.cpp#L122 graphics_binding_gl.context = (void *)display_server->window_get_native_handle(DisplayServer::OPENGL_CONTEXT); #else |