Skip to content

Commit

Permalink
Only report SteamVR errors if debug mode is enabled, as it tends to c…
Browse files Browse the repository at this point in the history
…onfuse people
  • Loading branch information
fholger committed Oct 24, 2021
1 parent eab5f26 commit 196715a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/postprocess/VrHooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ namespace {
postProcessor.Apply(eEye, pTexture, pBounds, nSubmitFlags);
vr::EVRCompositorError error = CallOriginal(IVRCompositor_Submit)(self, eEye, pTexture, pBounds, nSubmitFlags);
if (error != vr::VRCompositorError_None) {
Log() << "Error when submitting for eye " << eEye << ": " << error << std::endl;
if (Config::Instance().debugMode)
Log() << "Error when submitting for eye " << eEye << ": " << error << std::endl;
}

const_cast<vr::Texture_t*>(pTexture)->handle = origHandle;
Expand Down

0 comments on commit 196715a

Please sign in to comment.