Fix problem where GL would raise errors constantly

The problem was that the textures were being set twice and in turn GL
was complaining. However the scene was looking fine.