[Solved] Crash when run with 8 material textures config

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
mant
Posts: 125
Joined: Sun Jan 27, 2013 3:38 pm

[Solved] Crash when run with 8 material textures config

Post by mant »

I changed the line to #define _IRR_MATERIAL_MAX_TEXTURES_ 8
then my app crashes at memcpy of CMatrix4's operator=
(The value of other.TextureMatrix seems fine but this.TextureMatrix is 0xffffffffffffffff)

Image

Previous call:
Image

I'm using Irrlicht 1.8.4 dynamic link on Debian 9 stable.
By reading this post here: http://irrlicht.sourceforge.net/forum/v ... hp?t=38821
I also tried changing GL_MAX_TEXTURE_UNITS to GL_MAX_TEXTURE_IMAGE_UNITS_ARB or GL_MAX_TEXTURE_IMAGE_UNITS but the result is the same, crashes at the same place.
So I doubt that there's some problem with _IRR_MATERIAL_MAX_TEXTURES_
Last edited by mant on Sun Dec 24, 2017 2:26 pm, edited 2 times in total.
mant
Posts: 125
Joined: Sun Jan 27, 2013 3:38 pm

Re: Crashed when run with lib compiled for 8 material textur

Post by mant »

mant
Posts: 125
Joined: Sun Jan 27, 2013 3:38 pm

Re: Crashed when run with lib compiled for 8 material textur

Post by mant »

I forgot to update the Irrlicht headers of my app. It runs now.
Post Reply