started porting GLTex o the newest API