Page 1 of 1

[Solved] Crash when run with 8 material textures config

Posted: Sun Dec 24, 2017 1:46 pm
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_

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

Posted: Sun Dec 24, 2017 1:48 pm
by mant

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

Posted: Sun Dec 24, 2017 2:26 pm
by mant
I forgot to update the Irrlicht headers of my app. It runs now.