Fixing an incorrect error message in OpenXR reporting missing OpenGL support

This commit is contained in:
Bastiaan Olij 2022-10-06 11:15:57 +11:00
parent ea9bb98f26
commit c6ba626af4

View file

@ -245,7 +245,7 @@ bool OpenXRAPI::create_instance() {
if (!is_extension_supported(requested_extension.key)) {
if (requested_extension.value == nullptr) {
// nullptr means this is a manditory extension so we fail
ERR_FAIL_V_MSG(false, "OpenXR: OpenXR Runtime does not support OpenGL extension!");
ERR_FAIL_V_MSG(false, String("OpenXR: OpenXR Runtime does not support ") + requested_extension.key + String(" extension!"));
} else {
// set this extension as not supported
*requested_extension.value = false;