I don't really understand the way memory is allocated by opengl for the textures, what is the limit ? is it limited by the system/swap, video m?İmory ?

I'm trying to build a "texture manager" class that load and free textures on the fly, but i don't know when the memory is full...

is there a trick ? I tried googling, but never found something interesting or understable...

many thanks