Greetings!
In order to do optimization, I made my textures(diffuse map) null when I don’t need them, as you can see in the code below.
And it does this successfully because I can see that the textures are removed from my model also I can see that in the console, diffuseMap is now Null.
Now to the part where I am having issues, when I try to reassign the same texture to the model, then on the console. It shows that the textures are applied but on the model, textures are not applied. As you can see in the screenshot below
This is the part of the code where I m applying the code.
If anyone can help, That would be great