且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在XNA 4.0中取消设置纹理数据

更新时间:2023-12-06 14:26:40

第一个纹理是在GraphicsDevice.Textures数组中设置的,索引为0.

The first texture is set in the GraphicsDevice.Textures array with the index 0.

所以您必须这样做:

 GraphicsDevice.Textures[0] = null;