Mimimiguel Posted July 30, 2017 Share 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! Link to comment
Zorgman Posted July 30, 2017 Share Posted July 30, 2017 Don't think so. Shader is still there waiting to be applied on something else Link to comment
MisterQuestions Posted July 31, 2017 Share Posted July 31, 2017 No, you should destroy shader if you want to. Link to comment
Mimimiguel Posted July 31, 2017 Author Share 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! Link to comment
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