glsl: Use the dedicated function to extract variables from instructions
What does this MR do and why?
Avoid casting instruction that are not ir_variable and accessing their ir_type
field.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.