I’m trying to write a class using soil to encapsulate SOIL calls. I can’t however find any other means of deleting the memory if I load the image using
SOIL_load_OGL_texture
So what’s the correct way to clean up after this call?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It returns OGL texture identifier
so it should be freed using OGL functions:
I have not used this lib, but this is what I would do