]> git.tdb.fi Git - libs/gl.git/blobdiff - source/programparser.cpp
Recognize the samplerCubeArray type in shaders
[libs/gl.git] / source / programparser.cpp
index 7477f38bc9a6ad01d1f0182ed2429caaa6f49d39..83a2879f4feeaa92ba5e947149b45064b134ae44 100644 (file)
@@ -343,7 +343,7 @@ bool ProgramParser::is_qualifier(const string &token)
 
 bool ProgramParser::is_builtin_type(const string &token)
 {
-       static Regex re("^(void|float|int|bool|[ib]?vec[234]|mat[234](x[234])?|sampler((1D|2D)(Array)?(Shadow)?|Cube(Shadow)?|3D))$");
+       static Regex re("^(void|float|int|bool|[ib]?vec[234]|mat[234](x[234])?|sampler((1D|2D|Cube)(Array)?(Shadow)?|3D))$");
        return re.match(token);
 }