I would recommend refactoring it to something like: TextureBindGL So that other code is not affected.