Skip to content

Commit 196715a

Browse files
committed
Only report SteamVR errors if debug mode is enabled, as it tends to confuse people
1 parent eab5f26 commit 196715a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/postprocess/VrHooks.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ namespace {
5353
postProcessor.Apply(eEye, pTexture, pBounds, nSubmitFlags);
5454
vr::EVRCompositorError error = CallOriginal(IVRCompositor_Submit)(self, eEye, pTexture, pBounds, nSubmitFlags);
5555
if (error != vr::VRCompositorError_None) {
56-
Log() << "Error when submitting for eye " << eEye << ": " << error << std::endl;
56+
if (Config::Instance().debugMode)
57+
Log() << "Error when submitting for eye " << eEye << ": " << error << std::endl;
5758
}
5859

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

0 commit comments

Comments
 (0)