GL_OES_shader_multisample_interpolation: Include scalar swizzles as valid for interpolateAt*.

This commit is contained in:
John Kessenich 2015-08-22 16:54:35 -06:00
parent 0fc4338f3e
commit d6c37b190b
4 changed files with 25 additions and 2 deletions

View file

@ -882,7 +882,9 @@ const TIntermTyped* TIntermediate::findLValueBase(const TIntermTyped* node, bool
if (! swizzleOkay) {
if (op == EOpVectorSwizzle)
return nullptr;
if ((op == EOpIndexDirect || op == EOpIndexIndirect) && binary->getLeft()->getType().isVector() && ! binary->getLeft()->getType().isArray())
if ((op == EOpIndexDirect || op == EOpIndexIndirect) &&
(binary->getLeft()->getType().isVector() || binary->getLeft()->getType().isScalar()) &&
! binary->getLeft()->getType().isArray())
return nullptr;
}
node = node->getAsBinaryNode()->getLeft();