Commit 39b826fc by Jamie Madill Committed by Commit Bot

Reduce warning spam for failed D3D shaders.

This prevents Chrome's about:gpu from being filled with bad shaders, and instead only prints the relevant error lines. BUG=None Change-Id: I75fcd2ef920d2ed7b98e8668c487b0921faf4c0b Reviewed-on: https://chromium-review.googlesource.com/513417Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 22717ce2
......@@ -217,7 +217,10 @@ gl::Error HLSLCompiler::compileToBinary(gl::InfoLog &infoLog, const std::string
SafeRelease(errorMessage);
infoLog.appendSanitized(message.c_str());
WARN() << std::endl << hlsl;
// This produces unbelievable amounts of spam in about:gpu.
//WARN() << std::endl << hlsl;
WARN() << std::endl << message;
if ((message.find("error X3531:") != std::string::npos || // "can't unroll loops marked with loop attribute"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment