mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
OpenXR: Fix OpenGL version warning when using GLES
This commit is contained in:
parent
cae3d722a3
commit
6353386241
1 changed files with 6 additions and 1 deletions
|
@ -141,7 +141,12 @@ XrGraphicsBindingEGLMNDX OpenXROpenGLExtension::graphics_binding_egl;
|
|||
#endif
|
||||
|
||||
void *OpenXROpenGLExtension::set_session_create_and_get_next_pointer(void *p_next_pointer) {
|
||||
XrVersion desired_version = XR_MAKE_VERSION(3, 3, 0);
|
||||
GLint gl_version_major = 0;
|
||||
GLint gl_version_minor = 0;
|
||||
glGetIntegerv(GL_MAJOR_VERSION, &gl_version_major);
|
||||
glGetIntegerv(GL_MINOR_VERSION, &gl_version_minor);
|
||||
|
||||
XrVersion desired_version = XR_MAKE_VERSION(gl_version_major, gl_version_minor, 0);
|
||||
|
||||
if (!check_graphics_api_support(desired_version)) {
|
||||
print_line("OpenXR: Trying to initialize with OpenGL anyway...");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue