Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7933535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:21:49+00:00 2026-06-03T21:21:49+00:00

When should i call glDeleteBuffersARB ? Should I do it when application ends? Can

  • 0

When should i call glDeleteBuffersARB ? Should I do it when application ends? Can I somehow automatize the process of deletion vertex buffer object? For instance something like smart_ptr does.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:21:50+00:00Added an answer on June 3, 2026 at 9:21 pm

    Never. You should never call glDeleteBuffersARB. Buffer objects have been core GL functionality for upwards of a decade now; if you’re still using the ARB-suffixed extensions functions, STOP. If you’re follow a tutorial that uses them, again STOP; it’s clearly too old to be useful.

    Now, when should you use glDeleteBuffers? You should use it at the same time you would delete for a regular C++ object. That is, use it when you are finished with the object. When you have no more use for it and want to get rid of it.

    so can I create class for vbo with destructor which will delete vbo object? And then create objects as smart_ptr to automatize everything?

    You could, but it’s not going to buy you all that much. Also, you run the very real risk of waiting to delete the object until it’s too late.

    It is illegal to call any OpenGL function before the OpenGL context is created (and made current) or whenever a GL context is not current (for example, after you’ve destroyed the GL context). Attempts to do so are not good.

    If you use shared_ptr to manage these resources, it becomes theoretically possible for them to outlive the actual OpenGL context. That’s bad. Personally, I would prefer a more rigid management scheme, one that firmly ties the lifetime of the GL objects to that of the context.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The dropdown-menu (built by the select_tag) in my application should call the filter-category-action as
I'm trying to understand when I should call Query.close(Object) or Query.closeAll(); From the docs
Does a QSemaphore need to be released before deletion? If yes, I should call
What are the scenarios in which I should call finish() method on back button
I'm writing the spec for controller: it 'should call the method that performs the
I have some ctypes bindings, and for each body.New I should call body.Free. The
Many GDI+ classes implement IDisposable, but I'm not sure when I should call Dispose.
I have two WIN32 DLL projects in the solution, main.dll should call a function
http://code.google.com/appengine/docs/python/tools/uploadingdata.html is not clearly understand. Where i should call the bulkloader.py or appcfg.py? Should
when overriding the loadView method in UIViewController, should one call [super loadView] in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.