Results 1 to 2 of 2

Thread: Reserving VBO memory twice

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2008
    Posts
    7

    Reserving VBO memory twice

    Hi!

    I've got a question about the usage of VBOs. One can allocate memory when calling glBufferDataARB. But what happens if I call this function twice for the same buffer (maybe with another size)? Is the old memory freed or do I have to worry about that by myself?

    I haven't found an explanation for this question so far... Maybe somebody knows something about that.

    Thank you,
    David

    Edit:
    Sorry, I just found the answer in the specs. But I can swear that it wasn't there berfore!

  2. #2
    Senior Member OpenGL Pro Zengar's Avatar
    Join Date
    Sep 2001
    Location
    Germany
    Posts
    1,931

    Re: Reserving VBO memory twice

    The glBufferData effectively creates a VBO. The garbage collection for unused data (that is, if you assign another data to an object id) is done automatically by OpenGL.

Similar Threads

  1. Replies: 6
    Last Post: 02-28-2013, 04:59 PM
  2. copy from global memory to local memory..problem
    By phoebe0105 in forum OpenCL
    Replies: 3
    Last Post: 06-03-2010, 03:14 PM
  3. Replies: 5
    Last Post: 04-14-2010, 11:34 PM
  4. read back texture memory to system memory
    By PeterP in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-06-2002, 01:30 AM
  5. can I copy data from mainboard memory into card memory?
    By Suvcon in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 01-29-2001, 10:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean