I'm afraid I don't understand that code well enough to fix it correctly. It seems that all uniforms could be deleted before deleting or clearing the container that contains them. But for shaders that doesn't work as some of them come from the shader cache (auto program?) and those shouldn't be deleted.
I'm afraid I don't understand that code well enough to fix it correctly. It seems that all uniforms could be deleted before deleting or clearing the container that contains them. But for shaders that doesn't work as some of them come from the shader cache (auto program?) and those shouldn't be deleted.