From: Ian Romanick Date: Tue, 22 Jan 2013 04:43:25 +0000 (-0500) Subject: glsl: Assert that interfaces, like structures, are not seen as leaf types X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd963e12ef6c9655f2319f813be412ea22763264;p=mesa.git glsl: Assert that interfaces, like structures, are not seen as leaf types Signed-off-by: Ian Romanick Reviewed-by: Carl Worth Reviewed-by: Kenneth Graunke --- diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp index 737e2ad48a6..d7116009ecd 100644 --- a/src/glsl/link_uniforms.cpp +++ b/src/glsl/link_uniforms.cpp @@ -209,6 +209,8 @@ private: { assert(!type->is_record()); assert(!(type->is_array() && type->fields.array->is_record())); + assert(!type->is_interface()); + assert(!(type->is_array() && type->fields.array->is_interface())); (void) row_major; @@ -316,6 +318,8 @@ private: { assert(!type->is_record()); assert(!(type->is_array() && type->fields.array->is_record())); + assert(!type->is_interface()); + assert(!(type->is_array() && type->fields.array->is_interface())); (void) row_major;