#74795 - Extreme Coder - Tue Mar 07, 2006 8:10 pm
Hey,
I wanted to know if it was possible to free texture memory(i.e. vram that has been used by a texture), to use it for another texture? if possible,how?
thanks a lot in advance.
#74797 - Webez - Tue Mar 07, 2006 8:21 pm
I have the same problem. Dovoto said that you could reuse a texture with the same size but I still don't know how because glTexImage2D calls getNextTextureSlot and it always reserves more memory even if you are using a texture name used before.
Last edited by Webez on Thu Mar 09, 2006 1:11 am; edited 1 time in total
#74911 - dovoto - Wed Mar 08, 2006 7:56 pm
Currently it is only possible to release all of texture memory.
void glResetTextures(void)
I somehow thought that you could overwrite the old textures but as Webez points out, and i just realize, i did not expose that functionality. I will attempt to provide this with the next release.
I am not real fond of the way gl handles textures so perhaps in the future we will see non gl complient (but hopefully much more robust) texture managment.
_________________
www.drunkencoders.com
#74916 - Extreme Coder - Wed Mar 08, 2006 8:30 pm
I don't really care if it has anything to do with gl, if it is better than gl, then what are you waiting for?:P
And, please,PLEASE, P L E A S E, fix the depth sorting glOrtho problem(I asked nicely;))