mirror of
https://github.com/overte-org/overte.git
synced 2025-07-10 21:58:40 +02:00
change oculus init errors to critical
This commit is contained in:
parent
2191903803
commit
876f70709e
3 changed files with 5 additions and 5 deletions
|
@ -59,14 +59,14 @@ void OculusDisplayPlugin::customizeContext() {
|
||||||
|
|
||||||
ovrResult result = ovr_CreateTextureSwapChainGL(_session, &desc, &_textureSwapChain);
|
ovrResult result = ovr_CreateTextureSwapChainGL(_session, &desc, &_textureSwapChain);
|
||||||
if (!OVR_SUCCESS(result)) {
|
if (!OVR_SUCCESS(result)) {
|
||||||
logFatal("Failed to create swap textures");
|
logCritical("Failed to create swap textures");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int length = 0;
|
int length = 0;
|
||||||
result = ovr_GetTextureSwapChainLength(_session, _textureSwapChain, &length);
|
result = ovr_GetTextureSwapChainLength(_session, _textureSwapChain, &length);
|
||||||
if (!OVR_SUCCESS(result) || !length) {
|
if (!OVR_SUCCESS(result) || !length) {
|
||||||
logFatal("Unable to count swap chain textures");
|
logCritical("Unable to count swap chain textures");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (int i = 0; i < length; ++i) {
|
for (int i = 0; i < length; ++i) {
|
||||||
|
|
|
@ -39,12 +39,12 @@ void logWarning(const char* what) {
|
||||||
qWarning(oculus) << what << ":" << getError().ErrorString;
|
qWarning(oculus) << what << ":" << getError().ErrorString;
|
||||||
}
|
}
|
||||||
|
|
||||||
void logFatal(const char* what) {
|
void logCritical(const char* what) {
|
||||||
std::string error("[oculus] ");
|
std::string error("[oculus] ");
|
||||||
error += what;
|
error += what;
|
||||||
error += ": ";
|
error += ": ";
|
||||||
error += getError().ErrorString;
|
error += getError().ErrorString;
|
||||||
qFatal(error.c_str());
|
qCritical(error.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#include <controllers/Forward.h>
|
#include <controllers/Forward.h>
|
||||||
|
|
||||||
void logWarning(const char* what);
|
void logWarning(const char* what);
|
||||||
void logFatal(const char* what);
|
void logCritical(const char* what);
|
||||||
bool oculusAvailable();
|
bool oculusAvailable();
|
||||||
ovrSession acquireOculusSession();
|
ovrSession acquireOculusSession();
|
||||||
void releaseOculusSession();
|
void releaseOculusSession();
|
||||||
|
|
Loading…
Reference in a new issue