Jump to content
  • Advertisement

Archived

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

Trond A

Texture-freeing

This topic is 5176 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!