Archived

This topic is now archived and is closed to further replies.

Trond A

Texture-freeing

Recommended Posts

When showing (streamin) a video-clip in OpenGL, the memory would get full pretty fast if the new images were loaded into a new texture spot (or texture ID) all the time. Is there a way to free textures that have been uploaded to video memory? I guess one should upload and overwrite an old frame of the video, but I''m just curious... -Trond

Share this post


Link to post
Share on other sites
glDeleteTextures, not surprisingly, deletes textures.

But the fastest solution for what you''re talking about is just to use a single texture and update it with glTexSubImage2D.

Share this post


Link to post
Share on other sites