If I switch to full screen or DirectX mode it's runing just fine. It crashes only under OpenGL windoved mode.
Don't know what might be wrong but it was terifiing me for over couple of weeks untill I found out that it is not code which is wrong.
My stats:
Win XP
ATI Radeon 7000
OpenGL 1.2
compiled under DevC++
Load array of TestSceneNodes:
Code: Select all
#include <irrlicht.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
int main()
{
IrrlichtDevice *device =
createDevice(EDT_OPENGL, dimension2d<s32>(640, 480), 16, false);
device->setWindowCaption(L"Test");
video::IVideoDriver* driver = device->getVideoDriver();
scene::ISceneManager* smgr = device->getSceneManager();
smgr->addCameraSceneNode(0, vector3df(0,0,30), vector3df(0,0,0));
ISceneNode *myNode[20];
for(int i=0; i<20; i++)
{
myNode[i] = smgr->addTestSceneNode(1);
myNode[i]->setPosition( vector3df(i*4, 0, 0) );
}
while(device->run())
{
driver->beginScene(true, true, video::SColor(0,100,100,100));
smgr->drawAll();
driver->endScene();
}
device->drop();
return 0;
}