Freeing a texture

Blitz3D Forums/Blitz3D Programming/Freeing a texture

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

To make sure, and to preserve memory add these lines of code:


Tex=LoadSprite("fire.bmp")

........

If Tex>0 Then FreeSprite Tex

Tex=LoadSprite("spell.bmp")