X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fvalidate.cpp;h=883b950ff07f2e46d9aa0037ddfce2fa2719c425;hp=f43217ce6314c24a00d1e5885c6f405e129fba38;hb=89f26eba675defb38542faacacde6b9d4a2248c5;hpb=118de6cee2de6e9a6caa28415cb9008779285ff9 diff --git a/source/glsl/validate.cpp b/source/glsl/validate.cpp index f43217ce..883b950f 100644 --- a/source/glsl/validate.cpp +++ b/source/glsl/validate.cpp @@ -293,6 +293,9 @@ void DeclarationValidator::visit(VariableDeclaration &var) error(var, "Type 'bool' not allowed on interface variable"); } + if(var.array && !var.array_size) + error(var, "Array must have a size"); + if(var.init_expression) { if(scope==GLOBAL && !var.constant)