Jump to content
  • Advertisement
Sign in to follow this  
evolutional

GGC Crash with ilUT and DevIL

This topic is 4851 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm experiencing an annoying problem trying to use DevIL's OpenGL bindings, whenever I try and use any functions that deal with ilut and OpenGL, I get a nasty crash. I've tried calling both ilutGLTexImage and ilutGLBindTexImage and they both segfault on me. I have initialised ilut with ilutRenderer( ILUT_OPENGL ) and the DevIL image has loaded correctly, just whenever I try and use some of the helper functions I'm getting a crash. Has anyone else experienced this problem? If so, can you help me fix it - I'll give you a rating and a cookie. I'm using MinGW, with GCC 3.4.x and the DevIL 1.6.7 SDK which was downloaded precompiled from the SF project page. Thanks

Share this post


Link to post
Share on other sites
Advertisement
I just stepped through the DevIL ILUT functions in question with the debugger and they *seem* to be working correctly, however the return variable from ilutGLBindTexImage() is set incorrectly afterwards. The only thing I can think of is that the heap is getting corrupted somewhere along the line.

Share this post


Link to post
Share on other sites
I've done that for ILUT, perhaps I should try for the full thing.

I'm tempted to scrap it and just use my old TGA loader code as the SF project has a raft of issues filed about using and compiling DevIL for GCC.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!