glsl: fix switch statement default case regressions
authorTapani Pälli <tapani.palli@intel.com>
Fri, 25 Jul 2014 06:40:13 +0000 (09:40 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 4 Aug 2014 09:32:59 +0000 (12:32 +0300)
commitd66acc70777480439a67d59977169595b1cf4418
tree95174a9d373da8d4f0caea9d571e247200ff579a
parent47e5039680787d1d7072caffdb767a54ecd63218
glsl: fix switch statement default case regressions

This patch fixes regressions caused by commit 48deb4d. Regressions
happened because 'run_default' var did not get initialized when default
case was the last one.

Now all the switch tests in es3conform suite are passing.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81857
src/glsl/ast_to_hir.cpp