Mimimiguel Posted July 30, 2017 Posted July 30, 2017 It's just a doubt: Suppose I have a shader which is applied to an object, if I delete that object, do I also delete the shader automatically? (destroyElement) thanks!
Zorgman Posted July 30, 2017 Posted July 30, 2017 Don't think so. Shader is still there waiting to be applied on something else
MisterQuestions Posted July 31, 2017 Posted July 31, 2017 No, you should destroy shader if you want to.
Mimimiguel Posted July 31, 2017 Author Posted July 31, 2017 Fine, I guess I will have to destroy the shader when I destroy the object to avoid extra memory usage and bla bla bla thank you both!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now