Commit 2c976a44 by Jamie Madill

Prettify HLSL compile retry error messages.

We were inserting excess newlines in several places. Change-Id: I746334d3696e9e3be585ab02074384ae63535ea5 Reviewed-on: https://chromium-review.googlesource.com/210823Tested-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarNicolas Capens <capn@chromium.org>
parent 9aa00bbc
...@@ -105,14 +105,11 @@ ShaderBlob *HLSLCompiler::compileToBinary(gl::InfoLog &infoLog, const char *hlsl ...@@ -105,14 +105,11 @@ ShaderBlob *HLSLCompiler::compileToBinary(gl::InfoLog &infoLog, const char *hlsl
return gl::error(GL_OUT_OF_MEMORY, (ShaderBlob*)NULL); return gl::error(GL_OUT_OF_MEMORY, (ShaderBlob*)NULL);
} }
infoLog.append("Warning: D3D shader compilation failed with "); infoLog.append("Warning: D3D shader compilation failed with %s flags.", flagNames[i]);
infoLog.append(flagNames[i]);
infoLog.append(" flags.");
if (i + 1 < attempts) if (i + 1 < attempts)
{ {
infoLog.append(" Retrying with "); infoLog.append(" Retrying with %s.\n", flagNames[i + 1]);
infoLog.append(flagNames[i + 1]);
infoLog.append(".\n");
} }
} }
} }
......
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