OpenIL troubles

Started by
-1 comments, last by sand_man 18 years, 11 months ago
My opengl app freezes when I call ilutRenderer(ILUT_OPENGL) Here is my OpenIL code, stripped down.

  GLuint texid;
  ILuint id;

  ilInit();

  ilGenImages(1, &id);
  ilBindImage(id);
  ilLoadImage("test.tga");

  ilutRenderer(ILUT_OPENGL);     //Crashes here
  texid = ilutGLBindTexImage();

  glDeleteTextures(1, &texid);
  ilDeleteImages(1, &id);



[EDIT] Nevermind, I fixed it. I was supposed to call ilutRenderer(ILUT_OPENGL) just after calling ilInit().

This topic is closed to new replies.

Advertisement