Code: Select all
ISceneNode *node = _smgr->addCubeSceneNode();
node->getMaterial(0).setTexture(0,_driver->getTexture("test.bmp"));
node->setMaterialFlag(EMF_LIGHTING,false);
But now, if I try to access the texture matrix (get or set doesn't matter) Irrlicht creates one (in case none exists yet) but still causes a heap corruption breakpoint once dropping the driver (actually while deleting TextureMatrix within SMaterialLayer).
Either line will trigger the breakpoint later on:
Code: Select all
node->getMaterial(0).setTextureMatrix(0, matrix4());
core::matrix4& texMat = material.getTextureMatrix(0);
(Using latest unmodified SVN files)