diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-11-26 10:11:54 +1000 |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-11-26 10:30:25 +1000 |
commit | 8f40ac2f616ed12995aceaf77e96123d8205872c (patch) | |
tree | b135a43f863146e04f27ad73b09345d2b1ad5759 /src/libs/glsl/glslengine.cpp | |
parent | e6f1fa06371d0c8a52882ceb02b5cfb85e995c20 (diff) | |
download | qt-creator-8f40ac2f616ed12995aceaf77e96123d8205872c.tar.gz |
Populate GLSL vecN types with swizzled field names
Diffstat (limited to 'src/libs/glsl/glslengine.cpp')
-rw-r--r-- | src/libs/glsl/glslengine.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libs/glsl/glslengine.cpp b/src/libs/glsl/glslengine.cpp index 5d8157823d..ec5c40a551 100644 --- a/src/libs/glsl/glslengine.cpp +++ b/src/libs/glsl/glslengine.cpp @@ -147,7 +147,10 @@ const DoubleType *Engine::doubleType() const VectorType *Engine::vectorType(const Type *elementType, int dimension) { - return _vectorTypes.intern(VectorType(elementType, dimension)); + VectorType *type = const_cast<VectorType *> + (_vectorTypes.intern(VectorType(elementType, dimension))); + type->populateMembers(this); + return type; } const MatrixType *Engine::matrixType(const Type *elementType, int columns, int rows) |