glsl: assert base_alignment > 0 for records
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Mon, 28 Sep 2015 09:47:33 +0000 (11:47 +0200)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Wed, 30 Sep 2015 06:13:07 +0000 (08:13 +0200)
commite21bb9e7bdea0f73809759d3c248048eedd79663
tree5e85b414900a8075781239459a94b9bf9640c248
parentf3afcbecc63ec565a0386cda554d145ca908367d
glsl: assert base_alignment > 0 for records

From GLSL 1.50 spec, section 4.1.8 "Structures":

"Structures must have at least one member declaration."

So the base_alignment should be higher than zero.

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/glsl/glsl_types.cpp