所以我的问题是我尝试在启动时加载多个纹理,然后存储所有ID,以便我可以绑定(bind)它们以使用它们。现在我知道ID已正确存储,因为我可以调试它并在分配和使用中看到ID是相同的。对于每个绑定(bind),它都使用我加载的最后一个纹理。这是我的代码:GLuintTextureLoader::LoadTexture(constchar*fileName,Material&material,intwidth,intheight){GLuinttextureImage;FILE*textureFile;textureFile=fopen(fileName,"rb");unsignedchar*