d4e470babd
Normally, temporary declaration must dominate any use of it, so we generally did not need to analyze the CFG for these variables, but there is an edge case where you have an inliner doing: do { create_temporary; break; } while(0); use_temporary; The inside of the loop dominates the outer scope, but we cannot emit code like this in GLSL, so make sure we hoist these temporaries outside the "loop". |
||
---|---|---|
.. | ||
comp | ||
frag | ||
tesc | ||
vert |