change glTexImage3D() internalFormat to GLenum to match other OpenGLs