Crashbug with Apple Tree Software Renderer

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
Anteater

Crashbug with Apple Tree Software Renderer

Post by Anteater »

OK, first, I'd like to say that the new renderer is GREAT; i've seen it in the precompiled demos. However, I can't seem to get it to work with Dev-CPP/MinGW. It causes a "This program has performed an illegal..." pop-up.
The code:

Code: Select all

ShellExecute(NULL,"open","movie1.exe","scene-1.avi",NULL,SW_SHOW);
printf("What color depth would you like to use?\n");
scanf("%d",&bitscolor);
printf("\n");
printf("What renderer would you like to use? Press '0' for NULL, '1' for hardware,\nand '2' for software.\n");
scanf("%d",&driver);
printf("\n");
printf("Fatal Freedom: Scythe of the Phoenix (C) 2005 DECAPITATION GAMES\n");
system("pause");
printf("Loading...");
allegro_init();
install_sound(DIGI_AUTODETECT,MIDI_WIN32MAPPER,NULL);
if (driver == 0)
{
typed = EDT_NULL;
}
if (driver == 1)
{
typed = EDT_OPENGL;
}
if (driver == 2)
{
typed = EDT_SOFTWARE2;
}
IrrlichtDevice* device = createDevice(typed,core::dimension2d<s32>(960,600),bitscolor,true,true,true,0);
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr1 = device->getSceneManager();
IGUIEnvironment* gui = device->getGUIEnvironment();
IGUIInOutFader* faderblk = device->getGUIEnvironment()->addInOutFader();
IGUIInOutFader* faderred = device->getGUIEnvironment()->addInOutFader();
Of course, this is just the first few lines of my program, but it does show the initializing of the device.
Post Reply