Fix crash on fglrx with shader pipeline