glsl: replace assertion with conditional in _slang_pop_var_table()
authorBrian Paul <brianp@vmware.com>
Thu, 5 Feb 2009 00:32:07 +0000 (17:32 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 5 Feb 2009 00:32:07 +0000 (17:32 -0700)
commit0744805d5879abd1d1d968ec6ed99c974c95add6
treea30a3917d04bf08b29751eadac4d590459a40ab4
parent1ca05a066b8d8cb8a99da88743a48f7d97f695fe
glsl: replace assertion with conditional in _slang_pop_var_table()

We were hitting the assertion when we ran out of registers, which can happen.

Also, add some additional assertions and freshen up some comments.
src/mesa/shader/slang/slang_vartable.c