-
About OpenGL texture object
Before I delete the render context,
Do I have to delete its associate texture object? Did OpenGL cleanup the texture object
automatically so I don't have to worry about that?
-
Senior Member
OpenGL Guru
Re: About OpenGL texture object
You probably should delete the texture objects, just to be safe.
-
Member
Regular Contributor
Re: About OpenGL texture object
I think tha OpenGL deleted automaticaly the textures when you shutdown your program.
To be confirmed ...
-
Re: About OpenGL texture object
And what about display lists or other resource?
-
Re: About OpenGL texture object
Normally clean up display lists with glDeleteLists() command. - It takes some paramaters but I can't remember them offhand.
-
Re: About OpenGL texture object
Does OpenGL cleanup the resource allocated within the render context so there is no memory leaking after the program terminate?
I am not warry about dangling resource that is never be reference but I do worry about leaking resource after the program terminated.
-
Re: About OpenGL texture object
And I also notice that if I don't bind texture object the current texture object has ID = 0 and can be use like other texture object.
And you can bind to texture object that has any ID that doesn't create using glGenTextures
so does OpenGL detecting the use of any texture ID?
-
Re: About OpenGL texture object
Texture ID 0 is the default texture, it's no texture at all. I don't think if you bind a invalid texture id it defaults to 0.
-
Re: About OpenGL texture object
Should be I think it will default to texture id 0 if you try to use a nonexistant texture id.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules