Yea...I searched around and couldn't find anything but this thread here: http://irrlicht.sourceforge.net/phpBB2/ ... php?t=6927
Seems I'm having the same problem execpt i've narrowed it down a bit by using the debugging feature of codeblocks.
I get a segmentation fault on this line of code:
driver->setTextureCreationFlag(video::ETCF_ALWAYS_32_BIT, true);
However I can compile and run the example (12 I think) fine which uses this exact line of code.
I'm not doing much before this line of code, and I couldn't see anything special you need to do that I'm not doing in the example either. Can anyone help out?
Crash on setTextureCreationFlag
Thought I'd post it anyway.
Here's the function the error calls on:
and the error:
which highlights the scaletexture line.
Here's the function the error calls on:
Code: Select all
void cTerrain::Load(const stringc path)
{
Node=smgr->addTerrainSceneNode(path.c_str());
Node->setMaterialFlag(EMF_LIGHTING, false);
Node->setScale(vector3df(40, 4.4f, 40));
Node->setMaterialTexture(0, driver->getTexture("terrain-texture.jpg"));
Node->setMaterialTexture(1, driver->getTexture("detailmap3.jpg"));
Node->scaleTexture(1.0f, 20.0f);
Node->setMaterialType(EMT_DETAIL_MAP);
}
and the error:
Code: Select all
#0 0x100d9ee7 ZN3irr14createDeviceExERKNS_27SIrrlichtCreationParametersE (??:??)
#1 0x10177190 ZN3irr14createDeviceExERKNS_27SIrrlichtCreationParametersE (??:??)
#2 0x00401d64 cTerrain::Load (cObjects.cpp:154)
#3 0x0040218d main (main.cpp:16)
Revelation.
Don't know why it didn't come up before, but now when i try to compile a new project, i get this:
Warning: The library version of the Irrlicht Engine (1.1) does not match
the version the application was compiled with (1.2). This may cause problems.
Yet I'm using the .a that came with the 1.2 download. :\.
Don't know why it didn't come up before, but now when i try to compile a new project, i get this:
Warning: The library version of the Irrlicht Engine (1.1) does not match
the version the application was compiled with (1.2). This may cause problems.
Yet I'm using the .a that came with the 1.2 download. :\.