Original Post
Not really an OpenGL question but imagelib.org seems to be down, and I really need some help.
int main(int argc, char *argv[]) {
ilInit();
iluInit();
ilEnable(IL_FILE_OVERWRITE);
ILuint image[4];
ilGenImages(4, ℑ[0]);
ilBindImage(image[0]);
ilLoadImage("Grass.bmp");
ilBindImage(image[1]);
ilLoadImage("Dessert.bmp");
ilBindImage(image[2]);
ilLoadImage("Leaves.bmp");
ilBindImage(image[3]);
ilLoadImage("Water.bmp");
ilBindImage(image[0]);
ilDeleteImages(4, ℑ[0]);
return 0;
}
This is the EXACT code I compiled. The program stalls. If I remove the second binding of image[0] the program begins and ends without flaw. There''s something about the seconde binding that fucks up the program. Is it a DevIL bug, or am I doing something wrong?