Results 1 to 3 of 3

Thread: glTexImage2D... then I can free my own storage?

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2005
    Posts
    6

    glTexImage2D... then I can free my own storage?

    Once I have called glTexImage2D to specify my texture, can I then free my own storage area which I passed as the last parameter? Ie, does this function take a copy of my texture locally (or on the video card)?

    Thanks

  2. #2
    Guest

    Re: glTexImage2D... then I can free my own storage?

    Once I have called glTexImage2D to specify my texture, can I then free my own storage area which I passed as the last parameter?
    Yes.

    Hlz

  3. #3
    Guest

    Re: glTexImage2D... then I can free my own storage?

    does this function take a copy of my texture locally (or on the video card)?
    Where your texture ends up is up for grabs. It could end up in video, AGP, or system memory. It depends on many factors and is implementation dependent. You can rely on a good driver to do the right thing, but this can be a point of contention for applications that push video memory to the limits.

    I think it's generally a good idea to know roughly how much video memory your app requires to run smoothly and have a baseline hardware requirement to meet that need. If it runs on the baseline system it'll fly on the rest.

    Hlz

Similar Threads

  1. glTexImage2D can't free memory
    By hactieuho96 in forum OpenGL: Windows
    Replies: 1
    Last Post: 08-11-2017, 04:40 AM
  2. another question on texture storage...
    By Mark Shaxted in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 07-31-2007, 06:06 AM
  3. texture storage
    By divide in forum OpenGL: GLSL
    Replies: 1
    Last Post: 09-23-2004, 02:04 AM
  4. Advice on data storage
    By Old GLman in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 05-25-2002, 09:43 PM
  5. Storage of 24 bit textures .... 32 bit aligned?
    By Shag in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 05-15-2002, 01:58 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