Make the texture id hack a little more robust
Handle fbos better
Fix broken logic in shader generation