You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
OpenXR: Fix OpenGL version warning when using GLES
This commit is contained in:
@@ -141,7 +141,12 @@ XrGraphicsBindingEGLMNDX OpenXROpenGLExtension::graphics_binding_egl;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void *OpenXROpenGLExtension::set_session_create_and_get_next_pointer(void *p_next_pointer) {
|
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)) {
|
if (!check_graphics_api_support(desired_version)) {
|
||||||
print_line("OpenXR: Trying to initialize with OpenGL anyway...");
|
print_line("OpenXR: Trying to initialize with OpenGL anyway...");
|
||||||
|
|||||||
Reference in New Issue
Block a user