exiting with Cg

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
mikkis
Posts: 64
Joined: Mon Jan 28, 2013 2:38 pm
Location: Fi

exiting with Cg

Post by mikkis »

I compiled irrlicht sources from trunk, with Cg enabled. And installed cg toolkit 3.1 sdk.
Now when I use D3D9 and exit, comes exception. With OGL, exiting works.

Test code which does just that:

Code: Select all

 
int main()
{
    E_DRIVER_TYPE driverType = EDT_DIRECT3D9; //   Throws exception when exiting
    //E_DRIVER_TYPE driverType = EDT_OPENGL; // works ok
    MyEventReceiver input;
    device = createDevice(driverType, dimension2d<u32>(1024, 768), 32, false, false, false, &input);
    return 0;
}
 
Using w7, vc++ 2010, irrlicht compiled static Release lib.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: exiting with Cg

Post by hybrid »

Please try a debug build and give the backtrace of the error so we can see where it actually happens. Maybe Nadro can test this, I have no Cg environment installed currently.
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: exiting with Cg

Post by Nadro »

Thanks for info. I'll check how handled is context destruction in D3D9.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Post Reply