Add emulated glTexImage3D support.