HLSL: Handle swizzles on vectors of size 1. Addresses issue #453.
This commit is contained in:
parent
841db35bb3
commit
7d01bd6f0b
5 changed files with 34 additions and 9 deletions
|
|
@ -274,7 +274,8 @@ TIntermTyped* TIntermediate::addUnaryMath(TOperator op, TIntermTyped* child, TSo
|
|||
if (newType != EbtVoid) {
|
||||
child = addConversion(op, TType(newType, EvqTemporary, child->getVectorSize(),
|
||||
child->getMatrixCols(),
|
||||
child->getMatrixRows()),
|
||||
child->getMatrixRows(),
|
||||
child->isVector()),
|
||||
child);
|
||||
if (child == 0)
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue