glsl2: Check when inlining a bare function call that it actually is.
authorEric Anholt <eric@anholt.net>
Mon, 12 Jul 2010 17:13:20 +0000 (10:13 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 12 Jul 2010 19:02:11 +0000 (12:02 -0700)
commitd2afc874452a84965ee71c96f80e1d124c211ff4
tree1b68ffcaa01c4bd95295f2f0b968d25146b1a9e0
parent284d821206d74fddb346cd0d892d2dcec463e2a5
glsl2: Check when inlining a bare function call that it actually is.

It would be easy to miss an entry either of the two visitors involved
that would result in trying to ir->remove() the call to remove it from
the instruction stream when really it's part of an expression tree
that wasn't flattened.
src/glsl/ir_function_inlining.cpp