Skip to content

Commit

Permalink
Tell users that OpenGL mismatch is usually not a problem
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophHaag authored and m4gr3d committed Oct 19, 2022
1 parent d1eac05 commit a3fd9c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/openxr/OpenXRApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3030,7 +3030,9 @@ bool OpenXRApi::check_graphics_requirements_gl(XrSystemId system_id) {
XrVersion desired_opengl_version = XR_MAKE_VERSION(3, 3, 0);
if (desired_opengl_version > opengl_reqs.maxApiVersionSupported || desired_opengl_version < opengl_reqs.minApiVersionSupported) {
Godot::print(
"OpenXR Runtime only supports OpenGL version {0}.{1} - {2}.{3}!", XR_VERSION_MAJOR(opengl_reqs.minApiVersionSupported), XR_VERSION_MINOR(opengl_reqs.minApiVersionSupported), XR_VERSION_MAJOR(opengl_reqs.maxApiVersionSupported), XR_VERSION_MINOR(opengl_reqs.maxApiVersionSupported));
"OpenXR Runtime only supports OpenGL version {0}.{1} - {2}.{3}! Usually this is not a problem, continuing...",
XR_VERSION_MAJOR(opengl_reqs.minApiVersionSupported), XR_VERSION_MINOR(opengl_reqs.minApiVersionSupported),
XR_VERSION_MAJOR(opengl_reqs.maxApiVersionSupported), XR_VERSION_MINOR(opengl_reqs.maxApiVersionSupported));
// it might still work
return true;
}
Expand Down

0 comments on commit a3fd9c7

Please sign in to comment.