Switched uniform from taking pointer to references on texture binding