add target in texture_t so that we can check the target in
glBindTexture, glTex{Sub}Image2D