glsl: Fix inverted conditional in error message.
authorMatt Turner <mattst88@gmail.com>
Mon, 10 Jun 2013 20:28:40 +0000 (13:28 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 12 Jul 2013 03:58:58 +0000 (20:58 -0700)
commit46b74ca7bc06ce092136cd313fd963e82be06b00
tree439486c7cb58aec907535211c98662b0e32d5cc4
parent9749d96817d9ab98567155dd3598163a7fbf6cb3
glsl: Fix inverted conditional in error message.

The code float a[2] = float[2]( 3.4, 4.2, 5.0 ); previously generated
this:

   error: array constructor must have at least 2 parameters

when in fact it requires exactly two.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Ian Romanick <ian.d.romainck@intel.com>
src/glsl/ast_function.cpp