From: Mikko Rasa Date: Tue, 23 Jul 2019 08:07:29 +0000 (+0300) Subject: Recognize the samplerCubeArray type in shaders X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=c6604d0ee313f60b42b3a205c40ba7e1abbc3cb8 Recognize the samplerCubeArray type in shaders The actual extension will be added a bit later. --- diff --git a/source/programparser.cpp b/source/programparser.cpp index 7477f38b..83a2879f 100644 --- a/source/programparser.cpp +++ b/source/programparser.cpp @@ -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); }