Thread: OpenGL Problem

  1. #1
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009

    OpenGL Problem

    Hey guys can anyone tell me why doesn't OpenGL free the memory each turn, as it should do?
    I noticed this yesterday when i load a mesh file onto my CMesh format to display 3D objects. While loading everything where fine, but when i started painting, RAM usage never stopped rising!
    I've worked my ass on it without sleeping all day and night, and i'm sure that it is an OpenGL-related problem!
    Can anyone tell me a reason? I'll put my code here later.

  2. #2
    Registered User
    Join Date
    Oct 2008
    I seriously doubt it's opengl not freeing memory. Maybe once or twice, but if it "keeps growing", it has to be your code.

    Run the program with valgrind to see where the memory was lost.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting illegal case error
    By scmurphy64 in forum C Programming
    Replies: 2
    Last Post: 09-17-2009, 10:35 AM
  2. Multithread pthread with OpenGL
    By parad0x13 in forum C++ Programming
    Replies: 8
    Last Post: 07-24-2008, 03:04 PM
  3. SDL_ttf and OpenGL
    By sand_man in forum Game Programming
    Replies: 2
    Last Post: 12-01-2004, 06:06 PM
  4. Problem with OpenGL tutorial
    By 2Biaz in forum Windows Programming
    Replies: 18
    Last Post: 09-16-2004, 11:02 AM
  5. OpenGL lighting
    By BabyG in forum Game Programming
    Replies: 3
    Last Post: 08-29-2004, 09:58 AM