Sign in to follow this  

OpenIL troubles

Recommended Posts

My opengl app freezes when I call ilutRenderer(ILUT_OPENGL) Here is my OpenIL code, stripped down.
  GLuint texid;
  ILuint id;


  ilGenImages(1, &id);

  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().

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this