make enums used when loading textures GL3 compatible