Commit fc7cfd1c by Olli Etuaho

Fix array function parameter syntax in HLSL equality function

The fact that passing shaders to the platform compiler is deferred until linking is performed allowed this bug to pass undetected in earlier manual testing. TEST=WebGL conformance tests BUG=angleproject:941 Change-Id: Ic12b5d0c5547057551df90086453e897a161d559 Reviewed-on: https://chromium-review.googlesource.com/263221Tested-by: 's avatarOlli Etuaho <oetuaho@nvidia.com> Reviewed-by: 's avatarNicolas Capens <capn@chromium.org>
parent 6d5463bd
......@@ -3035,8 +3035,8 @@ TString OutputHLSL::addArrayEqualityFunction(const TType& type)
TInfoSinkBase fnOut;
fnOut << "bool " << function->functionName << "("
<< typeName << "[" << type.getArraySize() << "] a, "
<< typeName << "[" << type.getArraySize() << "] b)\n"
<< typeName << " a[" << type.getArraySize() << "], "
<< typeName << " b[" << type.getArraySize() << "])\n"
<< "{\n"
" for (int i = 0; i < " << type.getArraySize() << "; ++i)\n"
" {\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