mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #103973 from dsnopek/openxr-opengl-version-warning
OpenXR: Fix OpenGL version warning when using GLES
This commit is contained in:
commit
4af8989e38
1 changed files with 6 additions and 1 deletions
|
|
@ -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...");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue