GLIR: texture uses GLIR

But need a bit of cleanup etc.
Texture cleanup
flake