[fixed]Irrlicht doesn't destroy handles + OpenGL textures.

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
namtabmai
Posts: 2
Joined: Thu Mar 11, 2010 11:55 am

[fixed]Irrlicht doesn't destroy handles + OpenGL textures.

Post by namtabmai »

I've found a few problems when using Irrlicht, firstly with dynamically loading and unloading the irrlicht dll at run time.

It seems like Irrlicht doesn't properly Unregister its window classes or ( I think ) destroy windows in all situations. As it stands Irrlicht bombs out when creating the window or calling GetDC functions.

I also noticed another intermittent problem, most of the time the first texture I created would be draw as solid white. It looks like you're not binding the texture before creating the texture data.

I've patched Irrlicht 1.7.1, and uploaded these various patches here;

patches
tinhtoitrangtay
Posts: 70
Joined: Tue Oct 28, 2008 12:59 pm

Post by tinhtoitrangtay »

Very good
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, the unregister seem to be missing. Though you made the patches the wrong way.
However, the texture is correctly bound all the time, check setActiveTexture
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Thanks a lot for the fixes, the bugs are fixed in SVN/trunk now.
namtabmai
Posts: 2
Joined: Thu Mar 11, 2010 11:55 am

Post by namtabmai »

hybrid wrote:Yes, the unregister seem to be missing. Though you made the patches the wrong way.
You mean I diffed the files the wrong way round? Apologies for that.
hybrid wrote:However, the texture is correctly bound all the time, check setActiveTexture
Hm o.k. I'll take another look with the current version of trunk and see if I still get the same behaviour. If so I'll try and track down the proper cause, but I'm not sure what else could create an all white texture ( but not every time ).
Post Reply