ir_to_mesa: Allow ir_return in main().
authorEric Anholt <eric@anholt.net>
Wed, 18 Aug 2010 02:41:27 +0000 (19:41 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 18 Aug 2010 02:55:14 +0000 (19:55 -0700)
commit35220fc5981045331b4f048f0fc2e1371a0673ed
treecbcebbd5bf0d0253d169b454284fdbb574ac874a
parent1cdef8e90a33d982d8ce5ae73eb224e078a2054b
ir_to_mesa: Allow ir_return in main().

I didn't expect that this would really work, but it turns out there
are shaders in the wild that do it.

Fixes: (with swrast)
glsl-fs-main-return
glsl-vs-main-return
src/mesa/program/ir_to_mesa.cpp