do not lookup gl enum of texture-2d at runtime