Tidied up texture binding. TODO: move bindings into RenderObject