HLSL: Handle swizzles on vectors of size 1. Addresses issue #453.
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
// For the version, it uses the latest git tag followed by the number of commits.
|
||||
// For the date, it uses the current date (when then script is run).
|
||||
|
||||
#define GLSLANG_REVISION "Overload400-PrecQual.1464"
|
||||
#define GLSLANG_REVISION "Overload400-PrecQual.1465"
|
||||
#define GLSLANG_DATE "02-Sep-2016"
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user