02-14-2005, 09:18 PM
Hi!
I've created two textures, which overwrite themselves every two seconds.
Now I have to delete the textures every loop to clear the memory:
UINT TextureArray1[1];
UINT TextureArray2[1];
...
JPEG_Texture(TextureArray1, "data/texture/Bild1.jpg", 0);
JPEG_Texture(TextureArray2, "data/texture/Bild2.jpg", 0);
...
glDeleteTextures(1, TextureArray1);
glDeleteTextures(1, TextureArray2);
But it didnt't work with these lines.
Can anyone tell me my failure?
Thx, Dave
I've created two textures, which overwrite themselves every two seconds.
Now I have to delete the textures every loop to clear the memory:
UINT TextureArray1[1];
UINT TextureArray2[1];
...
JPEG_Texture(TextureArray1, "data/texture/Bild1.jpg", 0);
JPEG_Texture(TextureArray2, "data/texture/Bild2.jpg", 0);
...
glDeleteTextures(1, TextureArray1);
glDeleteTextures(1, TextureArray2);
But it didnt't work with these lines.
Can anyone tell me my failure?
Thx, Dave