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;
}