From c6604d0ee313f60b42b3a205c40ba7e1abbc3cb8 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 23 Jul 2019 11:07:29 +0300 Subject: [PATCH] Recognize the samplerCubeArray type in shaders The actual extension will be added a bit later. --- source/programparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.43.0